|
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.JPartPane
public class JPartPane
ASplitPane
| Nested Class Summary | |
|---|---|
protected class |
JPartPane.AccessibleASplitPane
This class implements accessibility support for the ASplitPane 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 | |
|---|---|
static String |
CONTINUOUS_LAYOUT_PROPERTY
Bound property name for continuousLayout. |
static String |
DIVIDER_SIZE_PROPERTY
Bound property name for border. |
static int |
HORIZONTAL_SPLIT
Horizontal split indicates the Components are
split along the x axis. |
static String |
ORIENTATION_PROPERTY
Bound property name for orientation (horizontal or vertical). |
static int |
VERTICAL_SPLIT
Vertical split indicates the Components are
split along the y axis. |
| 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 | |
|---|---|
JPartPane()
|
|
| Method Summary | |
|---|---|
void |
addPart(Component comp)
Adds the part component. |
void |
addPartAt(Component comp,
int index)
Adds the part component at the specify index. |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this ASplitPane. |
Component |
getComponentAt(int index)
Returns the part component at the specify index. |
int |
getDividerSize()
Returns the size of the divider. |
int |
getOrientation()
Returns the orientation. |
int |
getPartCount()
Returns the part count. |
PartPaneUI |
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)
Returns the index for the specify part component. |
boolean |
isContinuousLayout()
Gets the continuousLayout property. |
protected String |
paramString()
Returns a string representation of this ASplitPane. |
void |
removeAllPart()
Removes all part component. |
void |
removePart(Component comp)
Removes the part component. |
void |
removePartAt(int index)
Removes the part component at the specified index. |
void |
setComponentAt(int index,
Component comp)
Sets the part component at the specify index. |
void |
setContinuousLayout(boolean newContinuousLayout)
Sets the value of the continuousLayout property,
which must be true for the child components
to be continuously
redisplayed and laid out during user intervention. |
void |
setDividerSize(int newSize)
Sets the size of the divider. |
void |
setOrientation(int orientation)
Sets the orientation, or how the splitter is divided. |
void |
setUI(PartPaneUI 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 |
| Field Detail |
|---|
public static final int VERTICAL_SPLIT
Components are
split along the y axis. For example the two
Components will be split one on top of the other.
public static final int HORIZONTAL_SPLIT
Components are
split along the x axis. For example the two
Components will be split one to the left of the
other.
public static final String ORIENTATION_PROPERTY
public static final String CONTINUOUS_LAYOUT_PROPERTY
public static final String DIVIDER_SIZE_PROPERTY
| Constructor Detail |
|---|
public JPartPane()
| Method Detail |
|---|
public void updateUI()
updateUI in class JComponentJComponent.updateUI()public PartPaneUI getUI()
public void setUI(PartPaneUI ui)
ui - the ASplitPaneUI L&F objectUIDefaults.getUI(javax.swing.JComponent)public String getUIClassID()
getUIClassID in class JComponentJComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)public void setDividerSize(int newSize)
newSize - an integer giving the size of the divider in pixelspublic int getDividerSize()
public void setOrientation(int orientation)
orientation - an integer specifying the orientation
IllegalArgumentException - if orientation is not one of:
HORIZONTAL_SPLIT or VERTICAL_SPLIT.public int getOrientation()
setOrientation(int)public void setContinuousLayout(boolean newContinuousLayout)
continuousLayout property,
which must be true for the child components
to be continuously
redisplayed and laid out during user intervention.
The default value of this property is false.
Some look and feels might not support continuous layout;
they will ignore this property.
newContinuousLayout - true if the components
should continuously be redrawn as the divider changes positionisContinuousLayout()public boolean isContinuousLayout()
continuousLayout property.
continuousLayout propertysetContinuousLayout(boolean)public void addPart(Component comp)
comp - the part component to add
public void addPartAt(Component comp,
int index)
comp - the part component to addindex - the specify indexpublic void removePartAt(int index)
index - the specified part indexpublic void removePart(Component comp)
part - the part compnent to remvoepublic void removeAllPart()
public int getPartCount()
public void setComponentAt(int index,
Component comp)
index - the specify indexcomp - the part componentpublic Component getComponentAt(int index)
index - the specify index
public int indexOfComponent(Component comp)
comp - the specify part component
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 | |||||||||