Package com.install4j.api.styles
Interface ControlButtonContainer
-
- All Known Subinterfaces:
Style
- All Known Implementing Classes:
AbstractStyle
,WrapperStyle
public interface ControlButtonContainer
Implemented by objects that handle navigation functionality. AllStyle
instances implement this interface, but aFormComponent
can 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 implementControlButtonType
instead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
focusControlButton(ControlButtonType controlButtonType)
Called when a control button is focused.void
setControlButtonEnabled(ControlButtonType controlButtonType, boolean enabled)
Called when the enabled state of a control button is changed.void
setControlButtonText(ControlButtonType controlButtonType, java.lang.String text)
Called when a control button text is changed.void
setControlButtonVisible(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
-true
orfalse
-
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
-true
orfalse
-
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)
.
-
-