jmri.layout
Class LayoutElement

Show UML class diagram
java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by jmri.layout.LayoutElement
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode, LayoutEventInterface

public class LayoutElement
extends javax.swing.tree.DefaultMutableTreeNode
implements LayoutEventInterface

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
LayoutElement(LayoutAddress pAddress)
           
LayoutElement(java.lang.String pName, LayoutAddress pAddress)
           
 
Method Summary
 void addEventListener(LayoutEventListener pListener)
           
 LayoutAddress getAddress()
           
 LayoutEventData getData()
           
 java.lang.String getName()
           
protected  void message(LayoutEventData pLayoutEvent)
           
 void removeEventListener(LayoutEventListener pListener)
           
 void setData(LayoutEventData pData)
           
 void setName(java.lang.String pName)
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutElement

public LayoutElement(LayoutAddress pAddress)

LayoutElement

public LayoutElement(java.lang.String pName,
                     LayoutAddress pAddress)
Method Detail

getData

public LayoutEventData getData()

setData

public void setData(LayoutEventData pData)

getAddress

public LayoutAddress getAddress()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String pName)

addEventListener

public void addEventListener(LayoutEventListener pListener)
Specified by:
addEventListener in interface LayoutEventInterface

removeEventListener

public void removeEventListener(LayoutEventListener pListener)
Specified by:
removeEventListener in interface LayoutEventInterface

message

protected void message(LayoutEventData pLayoutEvent)


Copyright © 1997-2014 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads