|
NextApp Echo3 v3.0.b4 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.app.Component
nextapp.echo.app.SplitPane
public class SplitPane
SplitPane component: a pane component which displays two components horizontally or vertically
adjacent to one another, optionally allowing the user to apportion space between the two using a resize handle.
May have at most two child components. Supports Pane components as children.
Child LayoutData: Children of this component may provide
layout information using the
nextapp.echo.app.layout.SplitPaneLayoutData layout data object.
SplitPaneLayoutData,
Serialized Form| Field Summary | |
|---|---|
static int |
ORIENTATION_HORIZONTAL
Shorthand for ORIENTATION_HORIZONTAL_LEADING_TRAILING. |
static int |
ORIENTATION_HORIZONTAL_LEADING_TRAILING
An orientation constant indicating that the
SplitPane should be laid out horizontally with the
first (fixed-size) pane in the leading position. |
static int |
ORIENTATION_HORIZONTAL_LEFT_RIGHT
An orientation constant indicating that the
SplitPane should be laid out horizontally with the
first (fixed-size) pane in the left position. |
static int |
ORIENTATION_HORIZONTAL_RIGHT_LEFT
An orientation constant indicating that the
SplitPane should be laid out horizontally with the
first (fixed-size) pane in the right position. |
static int |
ORIENTATION_HORIZONTAL_TRAILING_LEADING
An orientation constant indicating that the
SplitPane should be laid out horizontally with the
first (fixed-size) pane in the trailing position. |
static int |
ORIENTATION_VERTICAL
Shorthand for ORIENTATION_VERTICAL_TOP_BOTTOM. |
static int |
ORIENTATION_VERTICAL_BOTTOM_TOP
An orientation constant indicating that the
SplitPane should be laid out vertically with the
first (fixed-size) pane in the bottom position. |
static int |
ORIENTATION_VERTICAL_TOP_BOTTOM
An orientation constant indicating that the
SplitPane should be laid out vertically with the
first (fixed-size) pane in the top position. |
static java.lang.String |
PROPERTY_AUTO_POSITIONED
|
static java.lang.String |
PROPERTY_ORIENTATION
|
static java.lang.String |
PROPERTY_RESIZABLE
|
static java.lang.String |
PROPERTY_SEPARATOR_COLOR
|
static java.lang.String |
PROPERTY_SEPARATOR_HEIGHT
|
static java.lang.String |
PROPERTY_SEPARATOR_HORIZONTAL_IMAGE
|
static java.lang.String |
PROPERTY_SEPARATOR_HORIZONTAL_ROLLOVER_IMAGE
|
static java.lang.String |
PROPERTY_SEPARATOR_POSITION
|
static java.lang.String |
PROPERTY_SEPARATOR_ROLLOVER_COLOR
|
static java.lang.String |
PROPERTY_SEPARATOR_VERTICAL_IMAGE
|
static java.lang.String |
PROPERTY_SEPARATOR_VERTICAL_ROLLOVER_IMAGE
|
static java.lang.String |
PROPERTY_SEPARATOR_VISIBLE
|
static java.lang.String |
PROPERTY_SEPARATOR_WIDTH
|
| Constructor Summary | |
|---|---|
SplitPane()
Creates a new SplitPane with default (horizontal)
orientation. |
|
SplitPane(int orientation)
Creates a new SplitPane with the specified orientation. |
|
SplitPane(int orientation,
boolean autoPositioned)
Creates a new SplitPane with the specified orientation
and auto-positioned state. |
|
SplitPane(int orientation,
Extent separatorPosition)
Creates a new SplitPane with the specified orientation and
separator position. |
|
| Method Summary | |
|---|---|
int |
getOrientation()
Returns the orientation of the SplitPane. |
Color |
getSeparatorColor()
Returns the color of the pane separator. |
Extent |
getSeparatorHeight()
Returns the height of the pane separator. |
FillImage |
getSeparatorHorizontalImage()
Returns the fill image of the pane separator that is displayed when the SplitPane has a horizontal orientation. |
FillImage |
getSeparatorHorizontalRolloverImage()
Returns the rollover fill image of the pane separator that is displayed when the SplitPane has a horizontal orientation. |
Extent |
getSeparatorPosition()
Returns the position of the pane separator. |
Color |
getSeparatorRolloverColor()
Returns the color of the pane separator. |
FillImage |
getSeparatorVerticalImage()
Returns the fill image of the pane separator that is displayed when the SplitPane has a vertical orientation. |
FillImage |
getSeparatorVerticalRolloverImage()
Returns the rollover fill image of the pane separator that is displayed when the SplitPane has a vertical orientation. |
Extent |
getSeparatorWidth()
Returns the width of the pane separator. |
boolean |
isAutoPositioned()
Determines if the SplitPane is auto-positioned. |
boolean |
isResizable()
Determines if the SplitPane is resizable. |
boolean |
isSeparatorVisible(boolean newValue)
Determines if the separator should be rendered visible. |
boolean |
isValidChild(Component component)
No more than two children may be added. |
boolean |
isValidParent(Component parent)
Determines if this Component is valid to be added as a
child of the given parent Component. |
void |
processInput(java.lang.String inputName,
java.lang.Object inputValue)
Processes client input specific to the Component
received from the UpdateManager. |
void |
setAutoPositioned(boolean newValue)
Sets whether the SplitPane is auto-positioned. |
void |
setOrientation(int newValue)
Sets the orientation of the SplitPane. |
void |
setResizable(boolean newValue)
Sets whether the SplitPane is resizable. |
void |
setSeparatorColor(Color newValue)
Sets the color of the pane separator. |
void |
setSeparatorHeight(Extent newValue)
Sets the height of the pane separator. |
void |
setSeparatorHorizontalImage(FillImage newValue)
Sets the fill image of the pane separator that is displayed when the SplitPane has a horizontal orientation. |
void |
setSeparatorHorizontalRolloverImage(FillImage newValue)
Sets the rollover fill image of the pane separator that is displayed when the SplitPane has a horizontal orientation. |
void |
setSeparatorPosition(Extent newValue)
Sets the position of the pane separator. |
void |
setSeparatorRolloverColor(Color newValue)
Sets the rollover color of the pane separator. |
void |
setSeparatorRolloverVerticalImage(FillImage newValue)
Sets the rollover fill image of the pane separator that is displayed when the SplitPane has a vertical orientation. |
void |
setSeparatorVerticalImage(FillImage newValue)
Sets the fill image of the pane separator that is displayed when the SplitPane has a vertical orientation. |
void |
setSeparatorVisible(boolean newValue)
Sets whether the separator is visible. |
void |
setSeparatorWidth(Extent newValue)
Sets the width of the pane separator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ORIENTATION_HORIZONTAL_LEADING_TRAILING
orientation constant indicating that the
SplitPane should be laid out horizontally with the
first (fixed-size) pane in the leading position.
The leading position is on the left side for left-to-right languages
and on the right side for right-to-left languages.
public static final int ORIENTATION_HORIZONTAL_TRAILING_LEADING
orientation constant indicating that the
SplitPane should be laid out horizontally with the
first (fixed-size) pane in the trailing position.
The trailing position is on the right side for left-to-right languages
and on the left side for right-to-left languages.
public static final int ORIENTATION_HORIZONTAL_LEFT_RIGHT
orientation constant indicating that the
SplitPane should be laid out horizontally with the
first (fixed-size) pane in the left position.
public static final int ORIENTATION_HORIZONTAL_RIGHT_LEFT
orientation constant indicating that the
SplitPane should be laid out horizontally with the
first (fixed-size) pane in the right position.
public static final int ORIENTATION_VERTICAL_TOP_BOTTOM
orientation constant indicating that the
SplitPane should be laid out vertically with the
first (fixed-size) pane in the top position.
public static final int ORIENTATION_VERTICAL_BOTTOM_TOP
orientation constant indicating that the
SplitPane should be laid out vertically with the
first (fixed-size) pane in the bottom position.
public static final int ORIENTATION_HORIZONTAL
ORIENTATION_HORIZONTAL_LEADING_TRAILING.
public static final int ORIENTATION_VERTICAL
ORIENTATION_VERTICAL_TOP_BOTTOM.
public static final java.lang.String PROPERTY_AUTO_POSITIONED
public static final java.lang.String PROPERTY_ORIENTATION
public static final java.lang.String PROPERTY_RESIZABLE
public static final java.lang.String PROPERTY_SEPARATOR_COLOR
public static final java.lang.String PROPERTY_SEPARATOR_HEIGHT
public static final java.lang.String PROPERTY_SEPARATOR_HORIZONTAL_IMAGE
public static final java.lang.String PROPERTY_SEPARATOR_HORIZONTAL_ROLLOVER_IMAGE
public static final java.lang.String PROPERTY_SEPARATOR_POSITION
public static final java.lang.String PROPERTY_SEPARATOR_ROLLOVER_COLOR
public static final java.lang.String PROPERTY_SEPARATOR_WIDTH
public static final java.lang.String PROPERTY_SEPARATOR_VERTICAL_IMAGE
public static final java.lang.String PROPERTY_SEPARATOR_VERTICAL_ROLLOVER_IMAGE
public static final java.lang.String PROPERTY_SEPARATOR_VISIBLE
| Constructor Detail |
|---|
public SplitPane()
SplitPane with default (horizontal)
orientation.
public SplitPane(int orientation)
SplitPane with the specified orientation.
orientation - a constant representing the orientation, one of the
following values:
ORIENTATION_HORIZONTALORIENTATION_VERTICALORIENTATION_HORIZONTAL_LEADING_TRAILINGORIENTATION_HORIZONTAL_TRAILING_LEADINGORIENTATION_HORIZONTAL_LEFT_RIGHTORIENTATION_HORIZONTAL_RIGHT_LEFTORIENTATION_VERTICAL_TOP_BOTTOMORIENTATION_VERTICAL_BOTTOM_TOP
public SplitPane(int orientation,
boolean autoPositioned)
SplitPane with the specified orientation
and auto-positioned state.
orientation - a constant representing the orientation, one of the
following values:
ORIENTATION_HORIZONTALORIENTATION_VERTICALORIENTATION_HORIZONTAL_LEADING_TRAILINGORIENTATION_HORIZONTAL_TRAILING_LEADINGORIENTATION_HORIZONTAL_LEFT_RIGHTORIENTATION_HORIZONTAL_RIGHT_LEFTORIENTATION_VERTICAL_TOP_BOTTOMORIENTATION_VERTICAL_BOTTOM_TOPautoPositioned - flag indicating whether the separator position
should be automatically positioned
public SplitPane(int orientation,
Extent separatorPosition)
SplitPane with the specified orientation and
separator position.
orientation - a constant representing the orientation, one of the
following values:
ORIENTATION_HORIZONTALORIENTATION_VERTICALORIENTATION_HORIZONTAL_LEADING_TRAILINGORIENTATION_HORIZONTAL_TRAILING_LEADINGORIENTATION_HORIZONTAL_LEFT_RIGHTORIENTATION_HORIZONTAL_RIGHT_LEFTORIENTATION_VERTICAL_TOP_BOTTOMORIENTATION_VERTICAL_BOTTOM_TOPseparatorPosition - the initial position of the separator.| Method Detail |
|---|
public int getOrientation()
SplitPane.
ORIENTATION_HORIZONTALORIENTATION_VERTICALORIENTATION_HORIZONTAL_LEADING_TRAILINGORIENTATION_HORIZONTAL_TRAILING_LEADINGORIENTATION_HORIZONTAL_LEFT_RIGHTORIENTATION_HORIZONTAL_RIGHT_LEFTORIENTATION_VERTICAL_TOP_BOTTOMORIENTATION_VERTICAL_BOTTOM_TOPpublic Color getSeparatorColor()
public Extent getSeparatorHeight()
SplitPane has a vertical orientation.
public FillImage getSeparatorHorizontalImage()
SplitPane has a horizontal orientation.
public FillImage getSeparatorHorizontalRolloverImage()
SplitPane has a horizontal orientation.
public Extent getSeparatorPosition()
public Color getSeparatorRolloverColor()
public FillImage getSeparatorVerticalImage()
SplitPane has a vertical orientation.
public FillImage getSeparatorVerticalRolloverImage()
SplitPane has a vertical orientation.
public Extent getSeparatorWidth()
SplitPane has a horizontal orientation.
public boolean isAutoPositioned()
SplitPane is auto-positioned.
Auto positioning indicates that the separator position should
be set automatically based on the size of the first child.
This feature is only available on vertically oriented panes, where the
first child contains non-pane content.
SplitPane is auto-positionedpublic boolean isResizable()
SplitPane is resizable.
SplitPane is resizablepublic boolean isSeparatorVisible(boolean newValue)
SplitPane
is resizable, regardless of the value of this property.
This property has a default value of true.
SplitPane should provide
a visible separator.public boolean isValidChild(Component component)
isValidChild in class Componentcomponent - the Component to evaluate as a child
Component is a valid childComponent.isValidChild(nextapp.echo.app.Component)public boolean isValidParent(Component parent)
ComponentComponent is valid to be added as a
child of the given parent Component. Default
implementation always returns true, may be overridden to provide specific
behavior.
isValidParent in class Componentparent - the Component to evaluate as a parent
Component is a valid parentComponent.isValidParent(nextapp.echo.app.Component)
public void processInput(java.lang.String inputName,
java.lang.Object inputValue)
ComponentComponent
received from the UpdateManager.
Derivative implementations should take care to invoke
super.processInput().
Security note: Because input to this method is
likely from a remote client, it should be treated as potentially hostile.
All input to this method should be carefully verified.
For example, directly invoking set() method with the
provided input would constitute a security hole.
processInput in class ComponentinputName - the name of the inputinputValue - the value of the inputComponent.processInput(java.lang.String, java.lang.Object)public void setAutoPositioned(boolean newValue)
SplitPane is auto-positioned.
Auto positioning indicates that the separator position should
be set automatically based on the size of the first child.
This feature is only available on vertically oriented panes, where the
first child contains non-pane content.
newValue - true if the SplitPane separator
should be automatically positioned.public void setOrientation(int newValue)
SplitPane.
newValue - a constant representing the orientation, one of the
following values:
ORIENTATION_HORIZONTALORIENTATION_VERTICALORIENTATION_HORIZONTAL_LEADING_TRAILINGORIENTATION_HORIZONTAL_TRAILING_LEADINGORIENTATION_HORIZONTAL_LEFT_RIGHTORIENTATION_HORIZONTAL_RIGHT_LEFTORIENTATION_VERTICAL_TOP_BOTTOMORIENTATION_VERTICAL_BOTTOM_TOPpublic void setResizable(boolean newValue)
SplitPane is resizable.
newValue - true if the SplitPane should allow the
resizing of panes by dragging the separator, false if it should
notpublic void setSeparatorVisible(boolean newValue)
SplitPane
is resizable, regardless of the value of this property.
This property has a default value of true.
newValue - true if the SplitPane should provide
a visible separator.public void setSeparatorColor(Color newValue)
newValue - the new colorpublic void setSeparatorHeight(Extent newValue)
SplitPane has a vertical orientation.
This property may not be specified in percent units.
newValue - the new heightpublic void setSeparatorHorizontalImage(FillImage newValue)
SplitPane has a horizontal orientation.
newValue - the new imagepublic void setSeparatorHorizontalRolloverImage(FillImage newValue)
SplitPane has a horizontal orientation.
newValue - the new imagepublic void setSeparatorPosition(Extent newValue)
newValue - the new positionpublic void setSeparatorRolloverColor(Color newValue)
newValue - the new colorpublic void setSeparatorVerticalImage(FillImage newValue)
SplitPane has a vertical orientation.
newValue - the new imagepublic void setSeparatorRolloverVerticalImage(FillImage newValue)
SplitPane has a vertical orientation.
newValue - the new imagepublic void setSeparatorWidth(Extent newValue)
SplitPane has a horizontal orientation.
This property may not be specified in percent units.
newValue - the new width
|
NextApp Echo3 v3.0.b4 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||