public class SelectedPropertyExample extends SingleFrameApplication
@Action(selectedProperty)
annotation parameter. The selectedProperty
parameter names
a bound boolean property whose value is kept in sync with the
value of the corresponding ApplicationAction's selectedProperty
,
which in turn mirrors the value of JToggleButtons that have
been configured with that ApplicationAction.Application.ExitListener
Constructor and Description |
---|
SelectedPropertyExample() |
Modifier and Type | Method and Description |
---|---|
void |
buttonAction() |
boolean |
isSelected() |
static void |
main(java.lang.String[] args) |
void |
setSelected(boolean selected) |
protected void |
startup()
Responsible for starting the application; for creating and showing
the initial GUI.
|
void |
toggleAction() |
configureWindow, getMainFrame, getMainView, setMainFrame, show, show, show, show, shutdown
addExitListener, end, exit, exit, getContext, getExitListeners, getInstance, getInstance, hide, initialize, launch, quit, ready, removeExitListener
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
protected void startup()
Application
This method is called by the static launch
method,
subclasses must override it. It runs on the event dispatching
thread.
startup
in class Application
Application.launch(java.lang.Class<T>, java.lang.String[])
,
Application.initialize(java.lang.String[])
,
Application.shutdown()
@Action public void buttonAction()
@Action(selectedProperty="selected") public void toggleAction()
public boolean isSelected()
public void setSelected(boolean selected)
public static void main(java.lang.String[] args)