Class ComponentHolder

All Implemented Interfaces:
PropertyChangeListener, EventListener, Sharable
Direct Known Subclasses:
ComponentGroup, HtmlComponent, IdvComponentHolder

public class ComponentHolder extends PropertiedThing
Version:
$Revision: 1.13 $
Author:
IDV Development Team
  • Field Details

    • ATTR_NAME

      public static final String ATTR_NAME
      _more_
      See Also:
    • BORDERS

      public static final String[] BORDERS
      _more_
    • BORDER_NAMES

      public static final String[] BORDER_NAMES
      _more_
    • nameFld

      protected JTextField nameFld
      _more_
    • displayBtn

      protected JButton displayBtn
      _more_
    • parent

      protected ComponentGroup parent
      _more_
    • isRemoved

      protected boolean isRemoved
      _more_
  • Constructor Details

    • ComponentHolder

      public ComponentHolder()
      _more_
    • ComponentHolder

      public ComponentHolder(String name)
      _more_
      Parameters:
      name - _more_
    • ComponentHolder

      public ComponentHolder(String name, JComponent contents)
      _more_
      Parameters:
      name - _more_
      contents - _more_
  • Method Details

    • getRoot

      public ComponentGroup getRoot()
      _more_
      Returns:
      _more_
    • getInternalFrame

      public JInternalFrame getInternalFrame()
      _more_
      Returns:
      _more_
    • getHierachicalName

      public String getHierachicalName()
      _more_
      Returns:
      _more_
    • setState

      public void setState(Element node)
      _more_
      Parameters:
      node - _more_
    • initWith

      public void initWith(Element node)
      _more_
      Parameters:
      node - _more_
    • clearContents

      protected void clearContents()
      _more_
    • getContents

      public JComponent getContents()
      _more_
      Returns:
      _more_
    • doMakeHeader

      protected JComponent doMakeHeader()
      _more_
      Returns:
      _more_
    • wrapContents

      protected JComponent wrapContents(JComponent contents)
      _more_
      Parameters:
      contents - _more_
      Returns:
      _more_
    • doMakeContents

      public JComponent doMakeContents()
      _more_
      Returns:
      _more_
    • getTypeName

      public String getTypeName()
      _more_
      Returns:
      _more_
    • showPopup

      public void showPopup(JComponent where, int x, int y)
      SHow the popup menu
      Parameters:
      where - component to show near to
      x - x
      y - y
    • getPropertiesComponents

      protected void getPropertiesComponents(List comps, int tabIdx)
      _more_
      Overrides:
      getPropertiesComponents in class PropertiedThing
      Parameters:
      comps - _more_
      tabIdx - _more_
    • applyProperties

      protected boolean applyProperties()
      _more_
      Overrides:
      applyProperties in class PropertiedThing
      Returns:
      _more_
    • setBorder

      protected void setBorder(JComponent comp)
      _more_
      Parameters:
      comp - _more_
    • makeTree

      _more_
      Parameters:
      parent - _more_
      Returns:
      _more_
    • getPopupMenuItems

      protected List getPopupMenuItems(List items)
      Get the menu items for the popup menu
      Parameters:
      items - List of items to add to
      Returns:
      The items list
    • getBeingShown

      public boolean getBeingShown()
      _more_
      Returns:
      _more_
    • removeDisplayComponent

      public boolean removeDisplayComponent()
      Remove me
      Returns:
      was removed
    • toString

      public String toString()
      _more_
      Overrides:
      toString in class Object
      Returns:
      _more_
    • print

      public void print(String tab)
      _more_
      Parameters:
      tab - _more_
    • doRemove

      public void doRemove()
      _more_
    • setName

      public void setName(String value)
      Set the Name property.
      Parameters:
      value - The new value for Name
    • getName

      public String getName()
      Get the Name property.
      Returns:
      The Name
    • setParent

      public void setParent(ComponentGroup newParent)
      Set the Parent property.
      Parameters:
      newParent - _more_
    • getParent

      public ComponentGroup getParent()
      Get the Parent property.
      Returns:
      The Parent
    • setLayoutRect

      public void setLayoutRect(Rectangle value)
      Set the LayoutRect property.
      Parameters:
      value - The new value for LayoutRect
    • getLayoutRect

      public Rectangle getLayoutRect()
      Get the LayoutRect property.
      Returns:
      The LayoutRect
    • setCategory

      public void setCategory(String value)
      Set the Category property.
      Parameters:
      value - The new value for Category
    • getCategory

      public String getCategory()
      Get the Category property.
      Returns:
      The Category
    • getIcon

      public ImageIcon getIcon()
      _more_
      Returns:
      _more_
    • setShowHeader

      public void setShowHeader(boolean value)
      Set the ShowHeader property.
      Parameters:
      value - The new value for ShowHeader
    • getShowHeader

      public boolean getShowHeader()
      Get the ShowHeader property.
      Returns:
      The ShowHeader
    • setBorder

      public void setBorder(String value)
      Set the Border property.
      Parameters:
      value - The new value for Border
    • getBorder

      public String getBorder()
      Get the Border property.
      Returns:
      The Border
    • setBorderLayoutLocation

      public void setBorderLayoutLocation(String value)
      Set the BorderLayoutLocation property.
      Parameters:
      value - The new value for BorderLayoutLocation
    • getBorderLayoutLocation

      public String getBorderLayoutLocation()
      Get the BorderLayoutLocation property.
      Returns:
      The BorderLayoutLocation
    • setInternalFrameShown

      public void setInternalFrameShown(boolean value)
      Set the InternalFrameShow property.
      Parameters:
      value - The new value for InternalFrameShow
    • getInternalFrameShown

      public boolean getInternalFrameShown()
      Get the InternalFrameShow property.
      Returns:
      The InternalFrameShow