public class ComponentGroup extends ComponentHolder
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComponent |
container
The gui
|
static java.lang.String |
LAYOUT_BORDER
type of layout
|
static java.lang.String |
LAYOUT_DESKTOP
type of layout
|
static java.lang.String |
LAYOUT_GRAPH
type of layout
|
static java.lang.String |
LAYOUT_GRID
type of layout
|
static java.lang.String |
LAYOUT_GRIDBAG
type of layout
|
static java.lang.String |
LAYOUT_HSPLIT
type of layout
|
static java.util.List |
LAYOUT_LIST
_more_
|
static java.lang.String |
LAYOUT_MENU
type of layout
|
static java.lang.String[] |
LAYOUT_NAMES
user readable names of layouts
|
static java.lang.String |
LAYOUT_TABS
type of layout
|
static java.lang.String |
LAYOUT_TREE
type of layout
|
static java.lang.String |
LAYOUT_VSPLIT
type of layout
|
static java.lang.String[] |
LAYOUTS
all of the layouts
|
protected javax.swing.JComponent |
outerContainer
outermost gui component
|
protected javax.swing.JTabbedPane |
tabbedPane
Tabbed pane
|
ATTR_NAME, BORDER_NAMES, BORDERS, displayBtn, header, isRemoved, nameFld, parent
propertiesDialog
Constructor and Description |
---|
ComponentGroup()
default ctor
|
ComponentGroup(java.lang.String name)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addComponent(ComponentHolder displayComponent)
Add the wrapper
|
void |
addComponent(ComponentHolder displayComponent,
int index)
Add the wrapper
|
protected boolean |
applyProperties()
Apply properties
|
protected void |
doDrop(java.lang.Object obj)
_more_
|
javax.swing.JComponent |
doMakeContents()
Create and return the gui contents
|
void |
doRemove()
do cleanup
|
boolean |
dropOk(java.lang.Object object)
_more_
|
void |
editLayout()
_more_
|
java.util.List |
findComponentsWithType(java.lang.Class compClass)
Recursively find all contained components of the given class
|
java.util.List |
getDisplayComponents()
Get the DisplayComponents property.
|
int |
getGridColumns()
Get the GridColumns property.
|
boolean |
getIconified()
Get the Iconified property.
|
java.awt.Rectangle |
getLastPosition()
Get the LastPosition property.
|
java.lang.String |
getLayout()
Get the Layout property.
|
int |
getNumColumns()
Get the NumColumns property.
|
int |
getNumRows()
Get the NumRows property.
|
protected java.util.List |
getPopupMenuItems(java.util.List items)
Make the edit menu items
|
protected void |
getPropertiesComponents(java.util.List comps,
int tabIdx)
Show dialog
|
java.lang.String |
getTypeName()
What type of thing is this
|
int |
indexOf(ComponentHolder displayComponent)
What is the index of the child component
|
void |
initWith(org.w3c.dom.Element node)
_more_
|
static boolean |
isAncestor(ComponentGroup parent,
ComponentHolder descendant)
_more_
|
static void |
main(java.lang.String[] args)
_more_
|
javax.swing.tree.DefaultMutableTreeNode |
makeTree(javax.swing.tree.DefaultMutableTreeNode parent)
_more_
|
void |
print(java.lang.String tab)
_more_
|
void |
redoLayout()
Layout components
|
void |
removeComponent(ComponentHolder displayComponent)
remove the wrapper
|
void |
setDisplayComponents(java.util.List value)
Set the DisplayComponents property.
|
void |
setGridColumns(int value)
Set the GridColumns property.
|
void |
setIconified(boolean value)
Set the Iconified property.
|
void |
setLastPosition(java.awt.Rectangle value)
Set the LastPosition property.
|
void |
setLayout(java.lang.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(org.w3c.dom.Element node)
_more_
|
protected void |
subtreeChanged()
_more_
|
java.lang.String |
toString()
to string
|
protected javax.swing.JComponent |
wrapContents(javax.swing.JComponent contents)
_more_
|
java.lang.String[] |
xxxxgetPropertyTabs()
_more_
|
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
addPropertyChangeListener, doApplyProperties, firePropertyChange, firePropertyChange, getPropertyListeners, getPropertyTabs, isShowing, propertyChange, removePropertyChangeListener, showProperties, showProperties
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
public static final java.lang.String LAYOUT_GRIDBAG
public static final java.lang.String LAYOUT_GRID
public static final java.lang.String LAYOUT_TABS
public static final java.lang.String LAYOUT_HSPLIT
public static final java.lang.String LAYOUT_VSPLIT
public static final java.lang.String LAYOUT_GRAPH
public static final java.lang.String LAYOUT_TREE
public static final java.lang.String LAYOUT_BORDER
public static final java.lang.String LAYOUT_DESKTOP
public static final java.lang.String LAYOUT_MENU
public static final java.lang.String[] LAYOUT_NAMES
public static final java.lang.String[] LAYOUTS
public static final java.util.List LAYOUT_LIST
protected javax.swing.JComponent container
protected javax.swing.JComponent outerContainer
protected javax.swing.JTabbedPane tabbedPane
public ComponentGroup()
public ComponentGroup(java.lang.String name)
name
- namepublic void initWith(org.w3c.dom.Element node)
initWith
in class ComponentHolder
node
- _more_public void setState(org.w3c.dom.Element node)
setState
in class ComponentHolder
node
- _more_public java.lang.String getTypeName()
getTypeName
in class ComponentHolder
public javax.swing.JComponent doMakeContents()
doMakeContents
in class ComponentHolder
protected javax.swing.JComponent wrapContents(javax.swing.JComponent contents)
wrapContents
in class ComponentHolder
contents
- _more_public boolean dropOk(java.lang.Object object)
object
- _more_protected void doDrop(java.lang.Object obj)
obj
- _more_protected java.util.List getPopupMenuItems(java.util.List items)
getPopupMenuItems
in class ComponentHolder
items
- Holds the menu itemspublic java.lang.String[] xxxxgetPropertyTabs()
protected void getPropertiesComponents(java.util.List comps, int tabIdx)
getPropertiesComponents
in class ComponentHolder
comps
- List of componentstabIdx
- which tabpublic javax.swing.tree.DefaultMutableTreeNode makeTree(javax.swing.tree.DefaultMutableTreeNode parent)
makeTree
in class ComponentHolder
parent
- _more_public java.util.List findComponentsWithType(java.lang.Class compClass)
compClass
- The class to look forpublic void redoLayout()
public void editLayout()
public void addComponent(ComponentHolder displayComponent)
displayComponent
- new onepublic int indexOf(ComponentHolder displayComponent)
displayComponent
- child componentpublic void addComponent(ComponentHolder displayComponent, int index)
displayComponent
- new oneindex
- Whereprotected void subtreeChanged()
protected boolean applyProperties()
applyProperties
in class ComponentHolder
public void removeComponent(ComponentHolder displayComponent)
displayComponent
- the wrapper to removepublic void doRemove()
doRemove
in class ComponentHolder
public void setDisplayComponents(java.util.List value)
value
- The new value for DisplayComponentspublic java.util.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 java.lang.String toString()
toString
in class ComponentHolder
public void setLastPosition(java.awt.Rectangle value)
value
- The new value for LastPositionpublic java.awt.Rectangle getLastPosition()
public void setIconified(boolean value)
value
- The new value for Iconifiedpublic boolean getIconified()
public void setLayout(java.lang.String value)
value
- The new value for Layoutpublic java.lang.String getLayout()
public void setGridColumns(int value)
value
- The new value for GridColumnspublic int getGridColumns()
public static void main(java.lang.String[] args)
args
- _more_public static boolean isAncestor(ComponentGroup parent, ComponentHolder descendant)
parent
- _more_descendant
- _more_public void print(java.lang.String tab)
print
in class ComponentHolder
tab
- _more_