- java.lang.Object
-
- org.tentackle.fx.FxControlDelegate
-
- org.tentackle.fx.FxComponentDelegate
-
- org.tentackle.fx.component.delegate.FxToggleButtonDelegate
-
- All Implemented Interfaces:
ErrorPopupSupported,FxComponent,FxControl,InfoPopupSupported
public class FxToggleButtonDelegate extends FxComponentDelegate
Delegate for FxToggleButton.- Author:
- harald
-
-
Field Summary
-
Fields inherited from class org.tentackle.fx.FxComponentDelegate
ERROR_STYLE, INFO_STYLE, MANDATORY_STYLE
-
-
Constructor Summary
Constructors Constructor Description FxToggleButtonDelegate(FxToggleButton component)Creates the delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxToggleButtongetComponent()Gets the component of this delegate.FxContainergetParentContainer()Gets the parent container.java.lang.BooleangetViewObject()Retrieves the internal native object of the component.<V> VgetViewValue()Retrieves the value from this component.
The value's type is that of the model.voidsetType(java.lang.Class<?> type)Sets the type for this component.voidsetViewObject(java.lang.Object viewObject)Sets the internal native object of the component.voidsetViewValue(java.lang.Object value)Sets a value in this component.
The value's type is that of the model.-
Methods inherited from class org.tentackle.fx.FxComponentDelegate
createChangeableProperty, getBinding, getBindingPath, getComponentPath, getDelegate, getError, getGenericType, getInfo, getNode, getSavedViewObject, getTableCell, getType, getValueTranslator, handleInputFailure, hideErrorPopup, hideInfoPopup, invalidateSavedView, isErrorTemporary, isMandatory, isModelUpdated, isSavedViewObjectValid, isUpdatingModel, isUpdatingView, mandatoryProperty, saveView, setBinding, setBindingPath, setComponentPath, setContainerChangeable, setError, setErrorTemporary, setGenericType, setInfo, setMandatory, setTableCell, setValueTranslator, showErrorPopup, showInfoPopup, toGenericString, toString, triggerViewModified, updateChangeable, updateErrorStyle, updateInfoStyle, updateMandatoryStyle, updateModel, updateView
-
Methods inherited from class org.tentackle.fx.FxControlDelegate
addModelToViewListener, addViewToModelListener, changeableProperty, fireModelToViewListeners, fireViewToModelListeners, getHelpUrl, getModelToViewListeners, getViewToModelListeners, isBindable, isChangeable, isContainerChangeableIgnored, isControlChangeable, isViewModified, removeModelToViewListener, removeViewToModelListener, setBindable, setChangeable, setContainerChangableIgnored, setHelpUrl, setViewModified, showHelp, viewModifiedProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.tentackle.fx.FxControl
addModelToViewListener, addViewToModelListener, changeableProperty, getHelpUrl, isBindable, isChangeable, isContainerChangeableIgnored, isViewModified, removeModelToViewListener, removeViewToModelListener, setBindable, setChangeable, setContainerChangableIgnored, setHelpUrl, setViewModified, showHelp, viewModifiedProperty
-
-
-
-
Constructor Detail
-
FxToggleButtonDelegate
public FxToggleButtonDelegate(FxToggleButton component)
Creates the delegate.- Parameters:
component- the component
-
-
Method Detail
-
getComponent
public FxToggleButton getComponent()
Description copied from class:FxComponentDelegateGets the component of this delegate.- Specified by:
getComponentin classFxComponentDelegate- Returns:
- the component
-
getParentContainer
public FxContainer getParentContainer()
Description copied from interface:FxControlGets the parent container.- Specified by:
getParentContainerin interfaceFxControl- Overrides:
getParentContainerin classFxComponentDelegate- Returns:
- the parent, null if not a component of a container
-
setType
public void setType(java.lang.Class<?> type)
Description copied from interface:FxComponentSets the type for this component.Notice that the type can be applied only once. This is because previously installed listeners could cause memleaks.
- Specified by:
setTypein interfaceFxComponent- Overrides:
setTypein classFxComponentDelegate- Parameters:
type- the type
-
getViewObject
public java.lang.Boolean getViewObject()
Description copied from interface:FxComponentRetrieves the internal native object of the component.- Returns:
- the component's object
-
setViewObject
public void setViewObject(java.lang.Object viewObject)
Description copied from interface:FxComponentSets the internal native object of the component.- Parameters:
viewObject- the internal object
-
setViewValue
public void setViewValue(java.lang.Object value)
Description copied from interface:FxComponentSets a value in this component.
The value's type is that of the model.- Parameters:
value- is the value to set
-
getViewValue
public <V> V getViewValue()
Description copied from interface:FxComponentRetrieves the value from this component.
The value's type is that of the model.- Type Parameters:
V- the value's type- Returns:
- the value shown by the component
-
-