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 JComponentThe guistatic final Stringtype of layoutstatic final Stringtype of layoutstatic final Stringtype of layoutstatic final Stringtype of layoutstatic final Stringtype of layoutstatic final Stringtype of layoutstatic final List_more_static final Stringtype of layoutstatic final String[]user readable names of layoutsstatic final Stringtype of layoutstatic final Stringtype of layoutstatic final Stringtype of layoutstatic final String[]all of the layoutsprotected JComponentoutermost gui componentprotected JTabbedPaneTabbed paneFields inherited from class ucar.unidata.ui.ComponentHolder
ATTR_NAME, BORDER_NAMES, BORDERS, displayBtn, header, isRemoved, nameFld, parentFields inherited from class ucar.unidata.collab.PropertiedThing
propertiesDialog -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(ComponentHolder displayComponent) Add the wrappervoidaddComponent(ComponentHolder displayComponent, int index) Add the wrapperprotected booleanApply propertiesprotected void_more_Create and return the gui contentsvoiddoRemove()do cleanupboolean_more_void_more_findComponentsWithType(Class compClass) Recursively find all contained components of the given classGet the DisplayComponents property.intGet the GridColumns property.booleanGet the Iconified property.Get the LastPosition property.Get the Layout property.intGet the NumColumns property.intGet the NumRows property.protected ListgetPopupMenuItems(List items) Make the edit menu itemsprotected voidgetPropertiesComponents(List comps, int tabIdx) Show dialogWhat type of thing is thisintindexOf(ComponentHolder displayComponent) What is the index of the child componentvoid_more_static booleanisAncestor(ComponentGroup parent, ComponentHolder descendant) _more_static void_more_makeTree(DefaultMutableTreeNode parent) _more_void_more_voidLayout componentsvoidremoveComponent(ComponentHolder displayComponent) remove the wrappervoidsetDisplayComponents(List value) Set the DisplayComponents property.voidsetGridColumns(int value) Set the GridColumns property.voidsetIconified(boolean value) Set the Iconified property.voidsetLastPosition(Rectangle value) Set the LastPosition property.voidSet the Layout property.voidsetNumColumns(int value) Set the NumColumns property.voidsetNumRows(int value) Set the NumRows property.voidsetRowsColumns(int rows, int cols) Set layoutvoid_more_protected void_more_toString()to stringprotected JComponentwrapContents(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, showPopupMethods 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
-
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:
initWithin classComponentHolder- Parameters:
node- _more_
-
setState
_more_- Overrides:
setStatein classComponentHolder- Parameters:
node- _more_
-
getTypeName
What type of thing is this- Overrides:
getTypeNamein classComponentHolder- Returns:
- type name
-
doMakeContents
Create and return the gui contents- Overrides:
doMakeContentsin classComponentHolder- Returns:
- gui contents
-
wrapContents
_more_- Overrides:
wrapContentsin 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:
getPopupMenuItemsin classComponentHolder- Parameters:
items- Holds the menu items- Returns:
- The list of items
-
xxxxgetPropertyTabs
_more_- Returns:
- _more_
-
getPropertiesComponents
Show dialog- Overrides:
getPropertiesComponentsin classComponentHolder- Parameters:
comps- List of componentstabIdx- which tab
-
makeTree
_more_- Overrides:
makeTreein 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:
applyPropertiesin classComponentHolder- Returns:
- Was successful
-
removeComponent
remove the wrapper- Parameters:
displayComponent- the wrapper to remove
-
doRemove
public void doRemove()do cleanup- Overrides:
doRemovein 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:
toStringin 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:
printin classComponentHolder- Parameters:
tab- _more_
-