|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JInternalFrame
jmri.jmrit.throttle.FunctionPanel
public class FunctionPanel
A JInternalFrame that contains buttons for each decoder function.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
|---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
NUM_FUNC_BUTTONS_INIT
|
static int |
NUM_FUNCTION_BUTTONS
|
| Fields inherited from class javax.swing.JInternalFrame |
|---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FunctionPanel()
Constructor |
|
| Method Summary | |
|---|---|
void |
buttonActionCmdPerformed()
|
void |
destroy()
|
FunctionButton[] |
getFunctionButtons()
|
Element |
getXml()
Collect the prefs of this object into XML Element Window prefs Each button has id, text, lock state. |
void |
notifyAddressChosen(int newAddress,
boolean isLong)
Receive notification that a new address has been selected. |
void |
notifyAddressReleased(int address,
boolean isLong)
Receive notification that an address has been released/dispatched |
void |
notifyAddressThrottleFound(DccThrottle t)
Get notification that a throttle has been found as we requested. |
void |
notifyFunctionLockableChanged(int functionNumber,
boolean isLockable)
Get notification that a function's lockable status has changed. |
void |
notifyFunctionStateChanged(int functionNumber,
boolean isSet)
Get notification that a function has changed state |
void |
propertyChange(PropertyChangeEvent e)
|
void |
resetFnButtons()
Make sure that all function buttons are being displayed if buttons label loaded from a roster entry, update buttons accordingly |
void |
saveFunctionButtonsToRoster(RosterEntry rosterEntry)
|
void |
setAddressPanel(AddressPanel addressPanel)
|
void |
setEnabled()
|
void |
setEnabled(boolean isEnabled)
Enable or disable all the buttons |
void |
setXml(Element e)
Set the preferences based on the XML Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NUM_FUNCTION_BUTTONS
public static final int NUM_FUNC_BUTTONS_INIT
| Constructor Detail |
|---|
public FunctionPanel()
| Method Detail |
|---|
public void destroy()
public FunctionButton[] getFunctionButtons()
public void notifyFunctionStateChanged(int functionNumber,
boolean isSet)
notifyFunctionStateChanged in interface FunctionListenerfunctionNumber - The function that has changed (0-9).isSet - True if the function is now active (or set).
public void notifyFunctionLockableChanged(int functionNumber,
boolean isLockable)
notifyFunctionLockableChanged in interface FunctionListenerfunctionNumber - The function that has changed (0-28).isLockable - True if the function is now Lockable
(continuously active).public void setEnabled(boolean isEnabled)
setEnabled in class JComponentpublic void setEnabled()
public void setAddressPanel(AddressPanel addressPanel)
public void saveFunctionButtonsToRoster(RosterEntry rosterEntry)
public void buttonActionCmdPerformed()
public void resetFnButtons()
public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpublic Element getXml()
public void setXml(Element e)
e - The Element for this object.public void notifyAddressThrottleFound(DccThrottle t)
notifyAddressThrottleFound in interface AddressListenert - An instantiation of the DccThrottle with the address requested.
public void notifyAddressReleased(int address,
boolean isLong)
AddressListener
notifyAddressReleased in interface AddressListeneraddress - The address released/dispatched
public void notifyAddressChosen(int newAddress,
boolean isLong)
AddressListener
notifyAddressChosen in interface AddressListenernewAddress - The address that is now selected.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||