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_void
doRemove()
_more_boolean
_more_Get the Border property.Get the BorderLayoutLocation property.Get the Category property._more__more_getIcon()
_more__more_boolean
Get the InternalFrameShow property.Get the LayoutRect property.getName()
Get the Name property.Get the Parent property.protected List
getPopupMenuItems
(List items) Get the menu items for the popup menuprotected void
getPropertiesComponents
(List comps, int tabIdx) _more_getRoot()
_more_boolean
Get the ShowHeader property._more_void
_more_makeTree
(DefaultMutableTreeNode parent) _more_void
_more_boolean
Remove mevoid
Set the Border property.protected void
setBorder
(JComponent comp) _more_void
setBorderLayoutLocation
(String value) Set the BorderLayoutLocation property.void
setCategory
(String value) Set the Category property.void
setInternalFrameShown
(boolean value) Set the InternalFrameShow property.void
setLayoutRect
(Rectangle value) Set the LayoutRect property.void
Set the Name property.void
setParent
(ComponentGroup newParent) Set the Parent property.void
setShowHeader
(boolean value) Set the ShowHeader property.void
_more_void
showPopup
(JComponent where, int x, int y) SHow the popup menutoString()
_more_protected JComponent
wrapContents
(JComponent contents) _more_Methods inherited from class ucar.unidata.collab.PropertiedThing
addPropertyChangeListener, doApplyProperties, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, propertyChange, removePropertyChangeListener, showProperties, showProperties
Methods 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:
getPropertiesComponents
in classPropertiedThing
- Parameters:
comps
- _more_tabIdx
- _more_
-
applyProperties
protected boolean applyProperties()_more_- Overrides:
applyProperties
in 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
-