Interface TethysUIDataEditField<T>
- Type Parameters:
T- the data type
- All Superinterfaces:
OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>,TethysUIComponent
- All Known Subinterfaces:
TethysUIDataEditField.TethysUICharArrayEditField,TethysUIDataEditField.TethysUICharArrayTextAreaField,TethysUIDataEditField.TethysUIColorButtonField,TethysUIDataEditField.TethysUICurrencyEditField<T>,TethysUIDataEditField.TethysUIDateButtonField,TethysUIDataEditField.TethysUIIconButtonField<T>,TethysUIDataEditField.TethysUIIntegerEditField,TethysUIDataEditField.TethysUIListButtonField<T>,TethysUIDataEditField.TethysUILongEditField,TethysUIDataEditField.TethysUIMoneyEditField,TethysUIDataEditField.TethysUIPriceEditField,TethysUIDataEditField.TethysUIRateEditField,TethysUIDataEditField.TethysUIRatioEditField,TethysUIDataEditField.TethysUIRawDecimalEditField,TethysUIDataEditField.TethysUIScrollButtonField<T>,TethysUIDataEditField.TethysUIShortEditField,TethysUIDataEditField.TethysUIStringEditField,TethysUIDataEditField.TethysUIStringTextAreaField,TethysUIDataEditField.TethysUIUnitsEditField,TethysUIDataEditField.TethysUIValidatedEditField<T>
- All Known Implementing Classes:
TethysUICoreDataEditField
public interface TethysUIDataEditField<T>
extends OceanusEventRegistrar.OceanusEventProvider<TethysUIEvent>, TethysUIComponent
Generic interface for displaying and editing a data field.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCharArrayTextFieldControl.static interfaceStringTextAreaFieldControl.static interfaceColorButton Field.static interfaceCurrencyTextFieldControl.static interfaceCurrencyField.static interfaceDateButton Field.static interfaceIconButtonFieldControl.static interfaceIntegerTextFieldControl.static interfaceTethysUIDataEditField.TethysUIListButtonField<T extends Comparable<? super T>>List Button Field.static interfaceLongTextFieldControl.static interfaceMoneyTextFieldControl.static interfacePriceTextFieldControl.static interfaceRateTextFieldControl.static interfaceRatioTextFieldControl.static interfaceRawDecimalTextFieldControl.static interfaceRawDecimalTextField.static interfaceScroll Button Field.static interfaceShortTextFieldControl.static interfaceStringTextFieldControl.static interfaceStringTextAreaFieldControl.static interfaceUnitsTextFieldControl.static interfaceValidatedTextFieldControl.static interfaceValidatedField. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdjust data field.voidClear the attribute.getCastValue(Object pValue) Obtain the cast value.Obtain the height.getValue()Obtain the value.booleanIs the attribute set?booleanIs the field editable?voidsetCmdMenuConfigurator(Consumer<TethysUIScrollMenu<String>> pConfigurator) Set the command menu configurator.voidsetEditable(boolean pEditable) Set Editable state.voidsetPreferredHeight(Integer pHeight) Set the Preferred Height.voidsetPreferredWidth(Integer pWidth) Set the Preferred Width.voidSet the attribute.voidsetTheAttributeState(TethysUIFieldAttribute pAttr, boolean pState) Set the attribute state.voidSet the value.voidshowCmdButton(boolean pShow) Show the command button.Methods inherited from interface io.github.tonywasher.joceanus.oceanus.event.OceanusEventRegistrar.OceanusEventProvider
getEventRegistrarMethods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, getUnderlying, setBorderPadding, setBorderTitle, setEnabled, setVisible
-
Method Details
-
setEditable
void setEditable(boolean pEditable) Set Editable state.- Parameters:
pEditable- true/false.
-
isEditable
boolean isEditable()Is the field editable?- Returns:
- true/false.
-
setValue
Set the value.- Parameters:
pValue- the value
-
getValue
T getValue()Obtain the value.- Returns:
- the value.
-
getCastValue
Obtain the cast value.- Parameters:
pValue- the value as object- Returns:
- the value
-
showCmdButton
void showCmdButton(boolean pShow) Show the command button.- Parameters:
pShow- true/false
-
setCmdMenuConfigurator
Set the command menu configurator.- Parameters:
pConfigurator- the configurator.
-
setTheAttributeState
Set the attribute state.- Parameters:
pAttr- the attributepState- the state
-
setTheAttribute
Set the attribute.- Parameters:
pAttr- the attribute
-
clearTheAttribute
Clear the attribute.- Parameters:
pAttr- the attribute
-
isAttributeSet
Is the attribute set?- Parameters:
pAttr- the attribute- Returns:
- true/false
-
adjustField
void adjustField()Adjust data field. -
getHeight
Integer getHeight()Obtain the height.- Returns:
- the height
-
setPreferredWidth
Description copied from interface:TethysUIComponentSet the Preferred Width.- Specified by:
setPreferredWidthin interfaceTethysUIComponent- Parameters:
pWidth- the width
-
setPreferredHeight
Description copied from interface:TethysUIComponentSet the Preferred Height.- Specified by:
setPreferredHeightin interfaceTethysUIComponent- Parameters:
pHeight- the height
-