|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
ucar.unidata.ui.ComponentHolder
ucar.unidata.ui.ComponentGroup
public class ComponentGroup
Holds a group of display components
| Field Summary | |
|---|---|
protected JComponent |
container
The gui |
static String |
LAYOUT_BORDER
type of layout |
static String |
LAYOUT_DESKTOP
type of layout |
static String |
LAYOUT_GRAPH
type of layout |
static String |
LAYOUT_GRID
type of layout |
static String |
LAYOUT_GRIDBAG
type of layout |
static String |
LAYOUT_HSPLIT
type of layout |
static List |
LAYOUT_LIST
_more_ |
static String |
LAYOUT_MENU
type of layout |
static String[] |
LAYOUT_NAMES
user readable names of layouts |
static String |
LAYOUT_TABS
type of layout |
static String |
LAYOUT_TREE
type of layout |
static String |
LAYOUT_VSPLIT
type of layout |
static String[] |
LAYOUTS
all of the layouts |
protected JComponent |
outerContainer
outermost gui component |
protected JTabbedPane |
tabbedPane
Tabbed pane |
| Fields 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 | |
|---|---|
ComponentGroup()
default ctor |
|
ComponentGroup(String name)
ctor |
|
| Method Summary | |
|---|---|
void |
addComponent(ComponentHolder displayComponent)
Add the wrapper |
void |
addComponent(ComponentHolder displayComponent,
int index)
Add the wrapper |
protected boolean |
applyProperties()
Apply properties |
protected void |
doDrop(Object obj)
_more_ |
JComponent |
doMakeContents()
Create and return the gui contents |
void |
doRemove()
do cleanup |
boolean |
dropOk(Object object)
_more_ |
void |
editLayout()
_more_ |
List |
findComponentsWithType(Class compClass)
Recursively find all contained components of the given class |
List |
getDisplayComponents()
Get the DisplayComponents property. |
int |
getGridColumns()
Get the GridColumns property. |
boolean |
getIconified()
Get the Iconified property. |
Rectangle |
getLastPosition()
Get the LastPosition property. |
String |
getLayout()
Get the Layout property. |
int |
getNumColumns()
Get the NumColumns property. |
int |
getNumRows()
Get the NumRows property. |
protected List |
getPopupMenuItems(List items)
Make the edit menu items |
protected void |
getPropertiesComponents(List comps,
int tabIdx)
Show dialog |
String |
getTypeName()
What type of thing is this |
int |
indexOf(ComponentHolder displayComponent)
What is the index of the child component |
void |
initWith(Element node)
_more_ |
static boolean |
isAncestor(ComponentGroup parent,
ComponentHolder descendant)
_more_ |
static void |
main(String[] args)
_more_ |
DefaultMutableTreeNode |
makeTree(DefaultMutableTreeNode parent)
_more_ |
void |
print(String tab)
_more_ |
void |
redoLayout()
Layout components |
void |
removeComponent(ComponentHolder displayComponent)
remove the wrapper |
void |
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 |
setLayout(String value)
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 layout |
void |
setState(Element node)
_more_ |
protected void |
subtreeChanged()
_more_ |
String |
toString()
to string |
protected JComponent |
wrapContents(JComponent contents)
_more_ |
String[] |
xxxxgetPropertyTabs()
_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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LAYOUT_GRIDBAG
public static final String LAYOUT_GRID
public static final String LAYOUT_TABS
public static final String LAYOUT_HSPLIT
public static final String LAYOUT_VSPLIT
public static final String LAYOUT_GRAPH
public static final String LAYOUT_TREE
public static final String LAYOUT_BORDER
public static final String LAYOUT_DESKTOP
public static final String LAYOUT_MENU
public static final String[] LAYOUT_NAMES
public static final String[] LAYOUTS
public static final List LAYOUT_LIST
protected JComponent container
protected JComponent outerContainer
protected JTabbedPane tabbedPane
| Constructor Detail |
|---|
public ComponentGroup()
public ComponentGroup(String name)
name - name| Method Detail |
|---|
public void initWith(Element node)
initWith in class ComponentHoldernode - _more_public void setState(Element node)
setState in class ComponentHoldernode - _more_public String getTypeName()
getTypeName in class ComponentHolderpublic JComponent doMakeContents()
doMakeContents in class ComponentHolderprotected JComponent wrapContents(JComponent contents)
wrapContents in class ComponentHoldercontents - _more_
public boolean dropOk(Object object)
object - _more_
protected void doDrop(Object obj)
obj - _more_protected List getPopupMenuItems(List items)
getPopupMenuItems in class ComponentHolderitems - Holds the menu items
public String[] xxxxgetPropertyTabs()
protected void getPropertiesComponents(List comps,
int tabIdx)
getPropertiesComponents in class ComponentHoldercomps - List of componentstabIdx - which tabpublic DefaultMutableTreeNode makeTree(DefaultMutableTreeNode parent)
makeTree in class ComponentHolderparent - _more_
public List findComponentsWithType(Class compClass)
compClass - The class to look for
public void redoLayout()
public void editLayout()
public void addComponent(ComponentHolder displayComponent)
displayComponent - new onepublic int indexOf(ComponentHolder displayComponent)
displayComponent - child component
public void addComponent(ComponentHolder displayComponent,
int index)
displayComponent - new oneindex - Whereprotected void subtreeChanged()
protected boolean applyProperties()
applyProperties in class ComponentHolderpublic void removeComponent(ComponentHolder displayComponent)
displayComponent - the wrapper to removepublic void doRemove()
doRemove in class ComponentHolderpublic void setDisplayComponents(List value)
value - The new value for DisplayComponentspublic List getDisplayComponents()
public void setRowsColumns(int rows,
int cols)
rows - rowscols - colspublic void setNumRows(int value)
value - The new value for NumRowspublic int getNumRows()
public void setNumColumns(int value)
value - The new value for NumColumnspublic int getNumColumns()
public String toString()
toString in class ComponentHolderpublic void setLastPosition(Rectangle value)
value - The new value for LastPositionpublic Rectangle getLastPosition()
public void setIconified(boolean value)
value - The new value for Iconifiedpublic boolean getIconified()
public void setLayout(String value)
value - The new value for Layoutpublic String getLayout()
public void setGridColumns(int value)
value - The new value for GridColumnspublic int getGridColumns()
public static void main(String[] args)
args - _more_
public static boolean isAncestor(ComponentGroup parent,
ComponentHolder descendant)
parent - _more_descendant - _more_
public void print(String tab)
print in class ComponentHoldertab - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||