Package com.install4j.api.styles
Interface ControlButtonContainer
-
- All Known Subinterfaces:
Style
- All Known Implementing Classes:
AbstractStyle,WrapperStyle
public interface ControlButtonContainerImplemented by objects that handle navigation functionality. AllStyleinstances implement this interface, but aFormComponentcan also implement it. In that case, the interface methods are only called if the form component is used in a style. If a form component only wants to handle a single control button type, it should implementControlButtonTypeinstead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfocusControlButton(ControlButtonType controlButtonType)Called when a control button is focused.voidsetControlButtonEnabled(ControlButtonType controlButtonType, boolean enabled)Called when the enabled state of a control button is changed.voidsetControlButtonText(ControlButtonType controlButtonType, java.lang.String text)Called when a control button text is changed.voidsetControlButtonVisible(ControlButtonType controlButtonType, boolean visible)Called when the visibility of a control button is changed.
-
-
-
Method Detail
-
setControlButtonEnabled
void setControlButtonEnabled(ControlButtonType controlButtonType, boolean enabled)
Called when the enabled state of a control button is changed. This is called by the framework as required, but it can also be triggered programatically by a call toWizardContext.setControlButtonEnabled(ControlButtonType, boolean).- Parameters:
controlButtonType- the control button typeenabled-trueorfalse
-
setControlButtonVisible
void setControlButtonVisible(ControlButtonType controlButtonType, boolean visible)
Called when the visibility of a control button is changed. This is called by the framework as required, but it can also be triggered programatically by a call toWizardContext.setControlButtonVisible(ControlButtonType, boolean).- Parameters:
controlButtonType- the control button typevisible-trueorfalse
-
setControlButtonText
void setControlButtonText(ControlButtonType controlButtonType, java.lang.String text)
Called when a control button text is changed. This is called for all control button types each time when a screen is activated, but it can also be triggered programatically by a call toWizardContext.setControlButtonText(ControlButtonType, String).- Parameters:
controlButtonType- the control button typetext- the text for the button
-
focusControlButton
void focusControlButton(ControlButtonType controlButtonType)
Called when a control button is focused. This is triggered programatically by a call toWizardContext.focusControlButton(ControlButtonType).
-
-