|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.zfqjava.swing.JDockPane
public class JDockPane
JDockPane provides a dock pane.
Client Property:
| Name | Value | Default Value |
|---|---|---|
| JDockPane.scrollableWrapEnabled |
|
Boolean.TRUE |
| JDockPane.centerLayout |
|
SDI |
ValueAction,
Serialized Form| Nested Class Summary | |
|---|---|
protected class |
JDockPane.AccessibleJDockPane
This class implements accessibility support for the JDockPane class. |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JDockPane()
Constructors a JDockPane. |
|
| Method Summary | |
|---|---|
protected void |
addImpl(Component comp,
Object constraints,
int index)
|
void |
addPart(Component comp,
Action a)
Adds the part component. |
void |
addPart(Component comp,
Action a,
DockMode dockMode,
SideMode sideMode)
Adds the part component for specified side. |
void |
addPartAt(Component comp,
Action a,
DockMode dockMode,
SideMode sideMode,
int index)
Adds the part component at the specify index for specified side. |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JDockPane. |
Action |
getAction(Component comp)
Returns the action for the specify component. |
Component |
getComponentAt(int index,
SideMode sideMode)
Returns the component at the specified index and side. |
int |
getComponentCount(SideMode sideMode)
Returns the component count for the specified side. |
int |
getDividerSize()
Returns the divider size. |
DockMode |
getDockMode(Component comp)
Returns the dock mode for the specify component. |
Component |
getSelectedComponent()
Returns the selected component. |
SideMode |
getSideMode(Component comp)
Returns the side mode for the specified component. |
DockPaneUI |
getUI()
Returns the look and feel (L&F) object that renders this component. |
String |
getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component. |
int |
indexOfComponent(Component comp,
SideMode sideMode)
Returns the index for the specified component at the specified side. |
boolean |
isSelected(Component comp)
Returns the selected state for the specify component. |
protected String |
paramString()
Returns a string representation of this JDockPane. |
void |
removeAllPart(SideMode sideMode)
Removes all part component for the specified side. |
void |
removePart(Component comp)
Removes the part component. |
void |
removePartAt(SideMode sideMode,
int index)
Removes the part component at the specified index for specified side. |
void |
setAction(Component comp,
Action action)
Sets the action for the specify component. |
void |
setDividerSize(int dividerSize)
Sets the divider size for the JDockPane. |
void |
setDockMode(Component comp,
DockMode dockMode)
Sets the dock mode for the specify component. |
void |
setSelectedComponent(Component comp)
Sets the selected component to the specified component. |
void |
setUI(DockPaneUI ui)
Sets the look and feel (L&F) object that renders this component. |
void |
updateUI()
Resets the UI property with a value from the current look and feel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDockPane()
JDockPane.
| Method Detail |
|---|
public void updateUI()
updateUI in class JComponentJComponent.updateUI()public DockPaneUI getUI()
public void setUI(DockPaneUI ui)
ui - the DockPaneUI L&F objectUIDefaults.getUI(javax.swing.JComponent)public String getUIClassID()
getUIClassID in class JComponentJComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)public void setDividerSize(int dividerSize)
JDockPane.
dividerSize - the divider sizegetDividerSize()public int getDividerSize()
setDividerSize(int)
public void setDockMode(Component comp,
DockMode dockMode)
comp - the specify componentdockMode - the dock modegetDockMode(java.awt.Component)public DockMode getDockMode(Component comp)
comp - the specify componet
setDockMode(java.awt.Component, com.zfqjava.layout.DockMode)
public void setAction(Component comp,
Action action)
comp - the specify componentaction - the actiongetAction(java.awt.Component)public Action getAction(Component comp)
comp - the specify component
setAction(java.awt.Component, javax.swing.Action)public boolean isSelected(Component comp)
comp - the specify component
#setSelectedpublic void setSelectedComponent(Component comp)
comp - the component to be selectedgetSelectedComponent()public Component getSelectedComponent()
setSelectedComponent(java.awt.Component)public SideMode getSideMode(Component comp)
comp - the specified component
protected void addImpl(Component comp,
Object constraints,
int index)
addImpl in class Container
public void addPart(Component comp,
Action a)
DockMode is
DockMode.DOCKED, the default SideMode
is SideMode.CENTER.
comp - the part component to addaction - the action for the component
NullPointerException - if the comp is null
public void addPart(Component comp,
Action a,
DockMode dockMode,
SideMode sideMode)
comp - the part component to addaction - the action for the componentdockMode - the dock mode for the componentsideMode - the specified side
NullPointerException - if the comp is null
public void addPartAt(Component comp,
Action a,
DockMode dockMode,
SideMode sideMode,
int index)
comp - the part component to addaction - the action for the componentdockMode - the dock mode for the componentsideMode - the specified sideindex - the specify index
NullPointerException - if the comp is null
IndexOutOfBoundsException - if index is out of range
(index < 0 || index > side count)public void removePart(Component comp)
part - the part compnent to remvoe
NullPointerException - if the comp is null
IllegalArgumentException - if the comp have not added into this JDockPane
public void removePartAt(SideMode sideMode,
int index)
sideMode - the specified sideindex - the specified part index
IndexOutOfBoundsException - if index is out of range
(index < 0 || index >= side count)public void removeAllPart(SideMode sideMode)
sideMode - the specified side
public Component getComponentAt(int index,
SideMode sideMode)
index - the specified indexsideMode - the side mode
IndexOutOfBoundsException - if index is out of range
(index < 0 || index >= side count)
public int indexOfComponent(Component comp,
SideMode sideMode)
comp - the specified componentsideMode - the side mode of the specified component
NullPointerException - if the comp is nullpublic int getComponentCount(SideMode sideMode)
sideMode - the side mode
protected String paramString()
null.
paramString in class JComponentpublic AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JComponent
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||