Package ucar.unidata.ui
Class ComponentHolder
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.ui.ComponentHolder
- All Implemented Interfaces:
PropertyChangeListener,EventListener,Sharable
- Direct Known Subclasses:
ComponentGroup,HtmlComponent,IdvComponentHolder
- Version:
- $Revision: 1.13 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String_more_static final String[]_more_static final String[]_more_protected JButton_more_protected JComponent_more_protected boolean_more_protected JTextField_more_protected ComponentGroup_more_Fields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog -
Constructor Summary
ConstructorsConstructorDescription_more_ComponentHolder(String name) _more_ComponentHolder(String name, JComponent contents) _more_ -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean_more_protected void_more__more_protected JComponent_more_voiddoRemove()_more_boolean_more_Get the Border property.Get the BorderLayoutLocation property.Get the Category property._more__more_getIcon()_more__more_booleanGet the InternalFrameShow property.Get the LayoutRect property.getName()Get the Name property.Get the Parent property.protected ListgetPopupMenuItems(List items) Get the menu items for the popup menuprotected voidgetPropertiesComponents(List comps, int tabIdx) _more_getRoot()_more_booleanGet the ShowHeader property._more_void_more_makeTree(DefaultMutableTreeNode parent) _more_void_more_booleanRemove mevoidSet the Border property.protected voidsetBorder(JComponent comp) _more_voidsetBorderLayoutLocation(String value) Set the BorderLayoutLocation property.voidsetCategory(String value) Set the Category property.voidsetInternalFrameShown(boolean value) Set the InternalFrameShow property.voidsetLayoutRect(Rectangle value) Set the LayoutRect property.voidSet the Name property.voidsetParent(ComponentGroup newParent) Set the Parent property.voidsetShowHeader(boolean value) Set the ShowHeader property.void_more_voidshowPopup(JComponent where, int x, int y) SHow the popup menutoString()_more_protected JComponentwrapContents(JComponent contents) _more_Methods inherited from class ucar.unidata.collab.PropertiedThing
addPropertyChangeListener, doApplyProperties, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, propertyChange, removePropertyChangeListener, showProperties, showPropertiesMethods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
-
Field Details
-
ATTR_NAME
_more_- See Also:
-
BORDERS
_more_ -
BORDER_NAMES
_more_ -
nameFld
_more_ -
displayBtn
_more_ -
header
_more_ -
parent
_more_ -
isRemoved
protected boolean isRemoved_more_
-
-
Constructor Details
-
ComponentHolder
public ComponentHolder()_more_ -
ComponentHolder
_more_- Parameters:
name- _more_
-
ComponentHolder
_more_- Parameters:
name- _more_contents- _more_
-
-
Method Details
-
getRoot
_more_- Returns:
- _more_
-
getInternalFrame
_more_- Returns:
- _more_
-
getHierachicalName
_more_- Returns:
- _more_
-
setState
_more_- Parameters:
node- _more_
-
initWith
_more_- Parameters:
node- _more_
-
clearContents
protected void clearContents()_more_ -
getContents
_more_- Returns:
- _more_
-
doMakeHeader
_more_- Returns:
- _more_
-
wrapContents
_more_- Parameters:
contents- _more_- Returns:
- _more_
-
doMakeContents
_more_- Returns:
- _more_
-
getTypeName
_more_- Returns:
- _more_
-
showPopup
SHow the popup menu- Parameters:
where- component to show near tox- xy- y
-
getPropertiesComponents
_more_- Overrides:
getPropertiesComponentsin classPropertiedThing- Parameters:
comps- _more_tabIdx- _more_
-
applyProperties
protected boolean applyProperties()_more_- Overrides:
applyPropertiesin classPropertiedThing- Returns:
- _more_
-
setBorder
_more_- Parameters:
comp- _more_
-
makeTree
_more_- Parameters:
parent- _more_- Returns:
- _more_
-
getPopupMenuItems
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
_more_ -
print
_more_- Parameters:
tab- _more_
-
doRemove
public void doRemove()_more_ -
setName
Set the Name property.- Parameters:
value- The new value for Name
-
getName
Get the Name property.- Returns:
- The Name
-
setParent
Set the Parent property.- Parameters:
newParent- _more_
-
getParent
Get the Parent property.- Returns:
- The Parent
-
setLayoutRect
Set the LayoutRect property.- Parameters:
value- The new value for LayoutRect
-
getLayoutRect
Get the LayoutRect property.- Returns:
- The LayoutRect
-
setCategory
Set the Category property.- Parameters:
value- The new value for Category
-
getCategory
Get the Category property.- Returns:
- The Category
-
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
Set the Border property.- Parameters:
value- The new value for Border
-
getBorder
Get the Border property.- Returns:
- The Border
-
setBorderLayoutLocation
Set the BorderLayoutLocation property.- Parameters:
value- The new value for BorderLayoutLocation
-
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
-