java.lang.Object
io.github.tonywasher.joceanus.metis.viewer.MetisViewerEntry

public class MetisViewerEntry extends Object
Data Viewer Entry.
  • Constructor Details

    • MetisViewerEntry

      protected MetisViewerEntry(MetisViewerManager pManager, MetisViewerEntry pParent, String pName)
      Constructor.
      Parameters:
      pManager - the viewer manager
      pParent - the parent entry
      pName - the entry display name
  • Method Details

    • getManager

      protected MetisViewerManager getManager()
      Get viewer manager.
      Returns:
      the manager
    • getParent

      protected MetisViewerEntry getParent()
      Get parent.
      Returns:
      the parent
    • getUniqueName

      public String getUniqueName()
      Get unique name.
      Returns:
      the name
    • getDisplayName

      public String getDisplayName()
      Get display name.
      Returns:
      the name
    • getId

      public int getId()
      Get id.
      Returns:
      the id
    • getObject

      public Object getObject()
      Get object.
      Returns:
      the object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • childIterator

      public Iterator<MetisViewerEntry> childIterator()
      Get child iterator.
      Returns:
      the iterator
    • isVisible

      public boolean isVisible()
      Is the entry visible?.
      Returns:
      true/false
    • setVisible

      public void setVisible(boolean pVisible)
      Set entry visibility.
      Parameters:
      pVisible - true/false
    • setFocus

      public void setFocus()
      Set Focus onto this entry.
    • setFocus

      public void setFocus(String pName)
      Set Focus onto child of this entry.
      Parameters:
      pName - the name of the child
    • setObject

      public void setObject(Object pObject)
      Set the object referred to by the entry.
      Parameters:
      pObject - the new object
    • setTreeObject

      public void setTreeObject(Object pObject)
      Set the tree object referred to by the entry.
      Parameters:
      pObject - the new object
    • equals

      public boolean equals(Object pThat)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object