Package ucar.unidata.ui
Class ComponentGroup
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.ui.ComponentHolder
ucar.unidata.ui.ComponentGroup
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,Sharable
- Direct Known Subclasses:
IdvComponentGroup
Holds a group of display components
- Version:
- $Revision: 1.13 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JComponent
The guistatic final String
type of layoutstatic final String
type of layoutstatic final String
type of layoutstatic final String
type of layoutstatic final String
type of layoutstatic final String
type of layoutstatic final List
_more_static final String
type of layoutstatic final String[]
user readable names of layoutsstatic final String
type of layoutstatic final String
type of layoutstatic final String
type of layoutstatic final String[]
all of the layoutsprotected JComponent
outermost gui componentprotected JTabbedPane
Tabbed paneFields inherited from class ucar.unidata.ui.ComponentHolder
ATTR_NAME, BORDER_NAMES, BORDERS, displayBtn, header, isRemoved, nameFld, parent
Fields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(ComponentHolder displayComponent) Add the wrappervoid
addComponent
(ComponentHolder displayComponent, int index) Add the wrapperprotected boolean
Apply propertiesprotected void
_more_Create and return the gui contentsvoid
doRemove()
do cleanupboolean
_more_void
_more_findComponentsWithType
(Class compClass) Recursively find all contained components of the given classGet the DisplayComponents property.int
Get the GridColumns property.boolean
Get the Iconified property.Get the LastPosition property.Get the Layout property.int
Get the NumColumns property.int
Get the NumRows property.protected List
getPopupMenuItems
(List items) Make the edit menu itemsprotected void
getPropertiesComponents
(List comps, int tabIdx) Show dialogWhat type of thing is thisint
indexOf
(ComponentHolder displayComponent) What is the index of the child componentvoid
_more_static boolean
isAncestor
(ComponentGroup parent, ComponentHolder descendant) _more_static void
_more_makeTree
(DefaultMutableTreeNode parent) _more_void
_more_void
Layout componentsvoid
removeComponent
(ComponentHolder displayComponent) remove the wrappervoid
setDisplayComponents
(List value) Set the DisplayComponents property.void
setGridColumns
(int value) Set the GridColumns property.void
setIconified
(boolean value) Set the Iconified property.void
setLastPosition
(Rectangle value) Set the LastPosition property.void
Set the Layout property.void
setNumColumns
(int value) Set the NumColumns property.void
setNumRows
(int value) Set the NumRows property.void
setRowsColumns
(int rows, int cols) Set layoutvoid
_more_protected void
_more_toString()
to stringprotected JComponent
wrapContents
(JComponent contents) _more_String[]
_more_Methods inherited from class ucar.unidata.ui.ComponentHolder
clearContents, doMakeHeader, getBeingShown, getBorder, getBorderLayoutLocation, getCategory, getContents, getHierachicalName, getIcon, getInternalFrame, getInternalFrameShown, getLayoutRect, getName, getParent, getRoot, getShowHeader, removeDisplayComponent, setBorder, setBorder, setBorderLayoutLocation, setCategory, setInternalFrameShown, setLayoutRect, setName, setParent, setShowHeader, showPopup
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
-
LAYOUT_GRIDBAG
type of layout- See Also:
-
LAYOUT_GRID
type of layout- See Also:
-
LAYOUT_TABS
type of layout- See Also:
-
LAYOUT_HSPLIT
type of layout- See Also:
-
LAYOUT_VSPLIT
type of layout- See Also:
-
LAYOUT_GRAPH
type of layout- See Also:
-
LAYOUT_TREE
type of layout- See Also:
-
LAYOUT_BORDER
type of layout- See Also:
-
LAYOUT_DESKTOP
type of layout- See Also:
-
LAYOUT_MENU
type of layout- See Also:
-
LAYOUT_NAMES
user readable names of layouts -
LAYOUTS
all of the layouts -
LAYOUT_LIST
_more_ -
container
The gui -
outerContainer
outermost gui component -
tabbedPane
Tabbed pane
-
-
Constructor Details
-
ComponentGroup
public ComponentGroup()default ctor -
ComponentGroup
ctor- Parameters:
name
- name
-
-
Method Details
-
initWith
_more_- Overrides:
initWith
in classComponentHolder
- Parameters:
node
- _more_
-
setState
_more_- Overrides:
setState
in classComponentHolder
- Parameters:
node
- _more_
-
getTypeName
What type of thing is this- Overrides:
getTypeName
in classComponentHolder
- Returns:
- type name
-
doMakeContents
Create and return the gui contents- Overrides:
doMakeContents
in classComponentHolder
- Returns:
- gui contents
-
wrapContents
_more_- Overrides:
wrapContents
in classComponentHolder
- Parameters:
contents
- _more_- Returns:
- _more_
-
dropOk
_more_- Parameters:
object
- _more_- Returns:
- _more_
-
doDrop
_more_- Parameters:
obj
- _more_
-
getPopupMenuItems
Make the edit menu items- Overrides:
getPopupMenuItems
in classComponentHolder
- Parameters:
items
- Holds the menu items- Returns:
- The list of items
-
xxxxgetPropertyTabs
_more_- Returns:
- _more_
-
getPropertiesComponents
Show dialog- Overrides:
getPropertiesComponents
in classComponentHolder
- Parameters:
comps
- List of componentstabIdx
- which tab
-
makeTree
_more_- Overrides:
makeTree
in classComponentHolder
- Parameters:
parent
- _more_- Returns:
- _more_
-
findComponentsWithType
Recursively find all contained components of the given class- Parameters:
compClass
- The class to look for- Returns:
- List of components
-
redoLayout
public void redoLayout()Layout components -
editLayout
public void editLayout()_more_ -
addComponent
Add the wrapper- Parameters:
displayComponent
- new one
-
indexOf
What is the index of the child component- Parameters:
displayComponent
- child component- Returns:
- its index
-
addComponent
Add the wrapper- Parameters:
displayComponent
- new oneindex
- Where
-
subtreeChanged
protected void subtreeChanged()_more_ -
applyProperties
protected boolean applyProperties()Apply properties- Overrides:
applyProperties
in classComponentHolder
- Returns:
- Was successful
-
removeComponent
remove the wrapper- Parameters:
displayComponent
- the wrapper to remove
-
doRemove
public void doRemove()do cleanup- Overrides:
doRemove
in classComponentHolder
-
setDisplayComponents
Set the DisplayComponents property.- Parameters:
value
- The new value for DisplayComponents
-
getDisplayComponents
Get the DisplayComponents property.- Returns:
- The DisplayComponents
-
setRowsColumns
public void setRowsColumns(int rows, int cols) Set layout- Parameters:
rows
- rowscols
- cols
-
setNumRows
public void setNumRows(int value) Set the NumRows property.- Parameters:
value
- The new value for NumRows
-
getNumRows
public int getNumRows()Get the NumRows property.- Returns:
- The NumRows
-
setNumColumns
public void setNumColumns(int value) Set the NumColumns property.- Parameters:
value
- The new value for NumColumns
-
getNumColumns
public int getNumColumns()Get the NumColumns property.- Returns:
- The NumColumns
-
toString
to string- Overrides:
toString
in classComponentHolder
- Returns:
- string
-
setLastPosition
Set the LastPosition property.- Parameters:
value
- The new value for LastPosition
-
getLastPosition
Get the LastPosition property.- Returns:
- The LastPosition
-
setIconified
public void setIconified(boolean value) Set the Iconified property.- Parameters:
value
- The new value for Iconified
-
getIconified
public boolean getIconified()Get the Iconified property.- Returns:
- The Iconified
-
setLayout
Set the Layout property.- Parameters:
value
- The new value for Layout
-
getLayout
Get the Layout property.- Returns:
- The Layout
-
setGridColumns
public void setGridColumns(int value) Set the GridColumns property.- Parameters:
value
- The new value for GridColumns
-
getGridColumns
public int getGridColumns()Get the GridColumns property.- Returns:
- The GridColumns
-
main
_more_- Parameters:
args
- _more_
-
isAncestor
_more_- Parameters:
parent
- _more_descendant
- _more_- Returns:
- _more_
-
print
_more_- Overrides:
print
in classComponentHolder
- Parameters:
tab
- _more_
-