|
||||||||||
| 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.JPanel
jmri.jmrit.display.PositionableJPanel
jmri.jmrit.display.SecurityElementIcon
public class SecurityElementIcon
An icon to display a status of a SecurityElement.
Unfortunately, this cannot inherit from PositionableLabel, as that displays only text or icon. So instead we inherit from JPanel and explicitly add the code for Positionable.
This also has LocoNet-specific code, so perhaps should be in the
jmrix.loconet package. See also SecurityElementIconXml
if you move this.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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 |
|---|
| Fields inherited from class jmri.jmrit.display.PositionableJPanel |
|---|
_editor, debug |
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SecurityElementIcon(Editor editor)
|
|
| Method Summary | |
|---|---|
Positionable |
deepClone()
Make a deep copy of Positional object. |
void |
dispose()
Clean up when this object is no longer needed. |
Positionable |
finishClone(Positionable p)
Finsh the deep Copy of a Positional object. |
String |
getNameString()
Methods to add popup menu items return true if a popup item is set |
boolean |
getRightBoundAX()
|
SecurityElement |
getSecurityElement()
|
boolean |
isActive()
"active" means that the object is still displayed, and should be stored. |
void |
propertyChange(PropertyChangeEvent e)
|
void |
remove()
Removes this object from display and persistance |
void |
setRightBoundAX(boolean mVal)
|
void |
setSecurityElement(String name)
Attached a numbered element to this display item |
boolean |
showPopUp(JPopupMenu popup)
Pop-up displays the config |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityElementIcon(Editor editor)
| Method Detail |
|---|
public void setRightBoundAX(boolean mVal)
public boolean getRightBoundAX()
public Positionable deepClone()
Positionable
deepClone in interface PositionabledeepClone in class PositionableJPanelpublic Positionable finishClone(Positionable p)
Positionable
finishClone in interface PositionablefinishClone in class PositionableJPanelpublic SecurityElement getSecurityElement()
public void setSecurityElement(String name)
name - Used as a number to lookup the sensor objectpublic String getNameString()
Positionable
getNameString in interface PositionablegetNameString in class PositionableJPanelpublic void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpublic boolean showPopUp(JPopupMenu popup)
showPopUp in interface PositionableshowPopUp in class PositionableJPanelpublic void dispose()
public void remove()
remove in interface Positionableremove in class PositionableJPanelpublic boolean isActive()
isActive in class PositionableJPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||