| java.lang.Object org.wings.SComponent org.wings.SContainer org.wings.SSplitPane
Field Summary | |
final public static String | BOTTOM Used to add a SComponent below the other
SComponent . | final public static String | DIVIDER Used to add a SComponent that will represent the divider. | final public static int | HORIZONTAL_SPLIT Horizontal split indicates the SComponent s are
split along the x axis. | final public static String | LEFT Used to add a SComponent to the left of the other
SComponent . | final public static String | RIGHT Used to add a SComponent to the right of the other
SComponent . | final public static String | TOP Used to add a SComponent above the other
SComponent . | final public static int | VERTICAL_SPLIT Vertical split indicates the SComponent s are
split along the y axis. | protected boolean | continuousLayout Whether or not the views are continuously redisplayed while
resizing. | protected int | dividerSize Size of the divider. | protected SComponent | leftComponent The left or top component. | protected int | orientation How the views are split. | protected SComponent | rightComponent The right or bottom component. |
Constructor Summary | |
public | SSplitPane() Creates a new JSplitPane configured to arrange the child
components side-by-side horizontally with no continuous
layout, using two buttons for the components. | public | SSplitPane(int newOrientation) Creates a new JSplitPane configured with the
specified orientation and no continuous layout. | public | SSplitPane(int newOrientation, boolean newContinuousLayout) Creates a new JSplitPane with the specified
orientation and redrawing style. | public | SSplitPane(int newOrientation, SComponent newLeftSComponent, SComponent newRightSComponent) Creates a new JSplitPane with the specified
orientation and
with the specified components that do not do continuous
redrawing. | public | SSplitPane(int newOrientation, boolean newContinuousLayout, SComponent newLeftSComponent, SComponent newRightSComponent) Creates a new JSplitPane with the specified
orientation and
redrawing style, and with the specified components. |
Method Summary | |
public SComponent | addComponent(SComponent comp, Object constraints, int index) Adds the specified component to this split pane.
If constraints identifies the left/top or
right/bottom child component, and a component with that identifier
was previously added, it will be removed and then comp
will be added in its place. | public void | fireIntermediateEvents() | public SComponent | getBottomComponent() Returns the component below, or to the right of the divider. | public int | getDividerLocation() Returns the last value passed to setDividerLocation . | public int | getDividerSize() Returns the size of the divider. | public SComponent | getLeftComponent() Returns the component to the left (or above) the divider. | public int | getOrientation() Returns the orientation. | public double | getResizeWeight() Returns the number that determines how extra space is distributed. | public SComponent | getRightComponent() Returns the component to the right (or below) the divider. | public SComponent | getTopComponent() Returns the component above, or to the left of the divider. | public boolean | isContinuousLayout() Gets the continuousLayout property. | public boolean | isEpochCheckEnabled() | protected String | paramString() Returns a string representation of this SSplitPane .
This method
is intended to be used only for debugging purposes, and the
content and format of the returned string may vary between
implementations. | public void | processLowLevelEvent(String name, String[] values) | public void | remove(SComponent component) Removes the child component, component from the
pane. | public void | remove(int index) Removes the SComponent at the specified index. | public void | removeAll() Removes all the child components from the split pane. | public void | resetToPreferredSizes() Lays out the JSplitPane layout based on the preferred size
of the children components. | public void | setBottomComponent(SComponent comp) Sets the component below, or to the right of the divider. | public void | setCG(SplitPaneCG cg) | public 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. | public void | setDividerLocation(int location) Sets the location of the divider. | public void | setDividerSize(int newSize) Sets the size of the divider. | public void | setLeftComponent(SComponent comp) Sets the component to the left (or above) the divider. | public void | setOrientation(int orientation) Sets the orientation, or how the splitter is divided. | public void | setResizeWeight(double value) Specifies how to distribute extra space when the size of the split pane
changes. | public void | setRightComponent(SComponent comp) Sets the component to the right (or below) the divider. | public void | setTopComponent(SComponent comp) Sets the component above, or to the left of the divider. |
BOTTOM | final public static String BOTTOM(Code) | | Used to add a SComponent below the other
SComponent .
|
DIVIDER | final public static String DIVIDER(Code) | | Used to add a SComponent that will represent the divider.
|
HORIZONTAL_SPLIT | final public static int HORIZONTAL_SPLIT(Code) | | Horizontal split indicates the SComponent s are
split along the x axis. For example the two
SComponent s will be split one to the left of the
other.
|
LEFT | final public static String LEFT(Code) | | Used to add a SComponent to the left of the other
SComponent .
|
RIGHT | final public static String RIGHT(Code) | | Used to add a SComponent to the right of the other
SComponent .
|
TOP | final public static String TOP(Code) | | Used to add a SComponent above the other
SComponent .
|
VERTICAL_SPLIT | final public static int VERTICAL_SPLIT(Code) | | Vertical split indicates the SComponent s are
split along the y axis. For example the two
SComponent s will be split one on top of the other.
|
continuousLayout | protected boolean continuousLayout(Code) | | Whether or not the views are continuously redisplayed while
resizing.
|
dividerSize | protected int dividerSize(Code) | | Size of the divider.
|
leftComponent | protected SComponent leftComponent(Code) | | The left or top component.
|
orientation | protected int orientation(Code) | | How the views are split.
|
rightComponent | protected SComponent rightComponent(Code) | | The right or bottom component.
|
SSplitPane | public SSplitPane()(Code) | | Creates a new JSplitPane configured to arrange the child
components side-by-side horizontally with no continuous
layout, using two buttons for the components.
|
SSplitPane | public SSplitPane(int newOrientation)(Code) | | Creates a new JSplitPane configured with the
specified orientation and no continuous layout.
Parameters: newOrientation - JSplitPane.HORIZONTAL_SPLIT orJSplitPane.VERTICAL_SPLIT exception: IllegalArgumentException - if orientation is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT. |
SSplitPane | public SSplitPane(int newOrientation, boolean newContinuousLayout)(Code) | | Creates a new JSplitPane with the specified
orientation and redrawing style.
Parameters: newOrientation - JSplitPane.HORIZONTAL_SPLIT orJSplitPane.VERTICAL_SPLIT Parameters: newContinuousLayout - a boolean, true for the components toredraw continuously as the divider changes position, falseto wait until the divider position stops changing to redraw exception: IllegalArgumentException - if orientation is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT |
SSplitPane | public SSplitPane(int newOrientation, SComponent newLeftSComponent, SComponent newRightSComponent)(Code) | | Creates a new JSplitPane with the specified
orientation and
with the specified components that do not do continuous
redrawing.
Parameters: newOrientation - JSplitPane.HORIZONTAL_SPLIT orJSplitPane.VERTICAL_SPLIT Parameters: newLeftSComponent - the SComponent that willappear on the leftof a horizontally-split pane, or at the top of avertically-split pane Parameters: newRightSComponent - the SComponent that willappear on the rightof a horizontally-split pane, or at the bottom of avertically-split pane exception: IllegalArgumentException - if orientation is not one of: HORIZONTAL_SPLIT or VERTICAL_SPLIT |
SSplitPane | public SSplitPane(int newOrientation, boolean newContinuousLayout, SComponent newLeftSComponent, SComponent newRightSComponent)(Code) | | Creates a new JSplitPane with the specified
orientation and
redrawing style, and with the specified components.
Parameters: newOrientation - JSplitPane.HORIZONTAL_SPLIT orJSplitPane.VERTICAL_SPLIT Parameters: newContinuousLayout - a boolean, true for the components toredraw continuously as the divider changes position, falseto wait until the divider position stops changing to redraw Parameters: newLeftSComponent - the SComponent that willappear on the leftof a horizontally-split pane, or at the top of avertically-split pane Parameters: newRightSComponent - the SComponent that willappear on the rightof a horizontally-split pane, or at the bottom of avertically-split pane exception: IllegalArgumentException - if orientation is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT |
addComponent | public SComponent addComponent(SComponent comp, Object constraints, int index)(Code) | | Adds the specified component to this split pane.
If constraints identifies the left/top or
right/bottom child component, and a component with that identifier
was previously added, it will be removed and then comp
will be added in its place. If constraints is not
one of the known identifiers the layout manager may throw an
IllegalArgumentException .
The possible constraints objects (Strings) are:
- JSplitPane.TOP
- JSplitPane.LEFT
- JSplitPane.BOTTOM
- JSplitPane.RIGHT
If the constraints object is null ,
the component is added in the
first available position (left/top if open, else right/bottom).
Parameters: comp - the component to add Parameters: constraints - an Object specifying thelayout constraints(position) for this component Parameters: index - an integer specifying the index in the container'slist. exception: IllegalArgumentException - if the constraints object does not match an existing component |
fireIntermediateEvents | public void fireIntermediateEvents()(Code) | | |
getBottomComponent | public SComponent getBottomComponent()(Code) | | Returns the component below, or to the right of the divider.
the SComponent displayed in that position |
getDividerLocation | public int getDividerLocation()(Code) | | Returns the last value passed to setDividerLocation .
The value returned from this method may differ from the actual
divider location (if setDividerLocation was passed a
value bigger than the curent size).
an integer specifying the location of the divider |
getDividerSize | public int getDividerSize()(Code) | | Returns the size of the divider.
an integer giving the size of the divider in pixels |
getLeftComponent | public SComponent getLeftComponent()(Code) | | Returns the component to the left (or above) the divider.
the SComponent displayed in that position |
getResizeWeight | public double getResizeWeight()(Code) | | Returns the number that determines how extra space is distributed.
how extra space is to be distributed on a resize of thesplit pane since: 1.3 |
getRightComponent | public SComponent getRightComponent()(Code) | | Returns the component to the right (or below) the divider.
the SComponent displayed in that position |
getTopComponent | public SComponent getTopComponent()(Code) | | Returns the component above, or to the left of the divider.
the SComponent displayed in that position |
isEpochCheckEnabled | public boolean isEpochCheckEnabled()(Code) | | |
paramString | protected String paramString()(Code) | | Returns a string representation of this SSplitPane .
This method
is intended to be used only for debugging purposes, and the
content and format of the returned string may vary between
implementations. The returned string may be empty but may not
be null .
a string representation of this SSplitPane . |
remove | public void remove(SComponent component)(Code) | | Removes the child component, component from the
pane. Resets the leftComponent or
rightComponent instance variable, as necessary.
Parameters: component - the SComponent to remove |
remove | public void remove(int index)(Code) | | Removes the SComponent at the specified index.
Updates the leftComponent and rightComponent
instance variables as necessary, and then messages super.
Parameters: index - an integer specifying the component to remove, where1 specifies the left/top component and 2 specifies thebottom/right component |
removeAll | public void removeAll()(Code) | | Removes all the child components from the split pane. Resets the
leftComonent and rightComponent
instance variables.
|
resetToPreferredSizes | public void resetToPreferredSizes()(Code) | | Lays out the JSplitPane layout based on the preferred size
of the children components. This will likely result in changing
the divider location.
|
setBottomComponent | public void setBottomComponent(SComponent comp)(Code) | | Sets the component below, or to the right of the divider.
Parameters: comp - the SComponent to display in that position |
setContinuousLayout | public void setContinuousLayout(boolean newContinuousLayout)(Code) | | 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.
The default value of this property is false .
Some look and feels might not support continuous layout;
they will ignore this property.
Parameters: newContinuousLayout - true if the componentsshould continuously be redrawn as the divider changes position See Also: SSplitPane.isContinuousLayout |
setDividerLocation | public void setDividerLocation(int location)(Code) | | Sets the location of the divider. This is passed off to the
look and feel implementation, and then listeners are notified. A value
less than 0 implies the divider should be reset to a value that
attempts to honor the preferred size of the left/top component.
After notifying the listeners, the last divider location is updated,
via setLastDividerLocation .
Parameters: location - an int specifying a UI-specific value (typically apixel count) |
setDividerSize | public void setDividerSize(int newSize)(Code) | | Sets the size of the divider.
Parameters: newSize - an integer giving the size of the divider in pixels |
setLeftComponent | public void setLeftComponent(SComponent comp)(Code) | | Sets the component to the left (or above) the divider.
Parameters: comp - the SComponent to display in that position |
setOrientation | public void setOrientation(int orientation)(Code) | | Sets the orientation, or how the splitter is divided. The options
are:
- JSplitPane.VERTICAL_SPLIT (above/below orientation of components)
- JSplitPane.HORIZONTAL_SPLIT (left/right orientation of components)
Parameters: orientation - an integer specifying the orientation exception: IllegalArgumentException - if orientation is not one of:HORIZONTAL_SPLIT or VERTICAL_SPLIT. |
setResizeWeight | public void setResizeWeight(double value)(Code) | | Specifies how to distribute extra space when the size of the split pane
changes. A value of 0, the default,
indicates the right/bottom component gets all the extra space (the
left/top component acts fixed), where as a value of 1 specifies the
left/top component gets all the extra space (the right/bottom component
acts fixed). Specifically, the left/top component gets (weight * diff)
extra space and the right/bottom component gets (1 - weight) * diff
extra space.
Parameters: value - as described above exception: IllegalArgumentException - if value is < 0 or > 1 since: 1.3 |
setRightComponent | public void setRightComponent(SComponent comp)(Code) | | Sets the component to the right (or below) the divider.
Parameters: comp - the SComponent to display in that position |
setTopComponent | public void setTopComponent(SComponent comp)(Code) | | Sets the component above, or to the left of the divider.
Parameters: comp - the SComponent to display in that position |
Methods inherited from org.wings.SContainer | public SComponent add(SComponent c)(Code)(Java Doc) public void add(SComponent c, Object constraint)(Code)(Java Doc) public SComponent add(SComponent c, int index)(Code)(Java Doc) public void add(SComponent c, Object constraint, int index)(Code)(Java Doc) public SComponent addComponent(SComponent c)(Code)(Java Doc) public SComponent addComponent(SComponent c, Object constraint)(Code)(Java Doc) public SComponent addComponent(SComponent c, int index)(Code)(Java Doc) public SComponent addComponent(SComponent c, Object constraint, int index)(Code)(Java Doc) public void addContainerListener(SContainerListener l)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public Object clone()(Code)(Java Doc) protected void fireContainerEvent(int type, SComponent comp)(Code)(Java Doc) public SComponent getComponent(int i)(Code)(Java Doc) public int getComponentCount()(Code)(Java Doc) protected ArrayList getComponentList()(Code)(Java Doc) public SComponent[] getComponents()(Code)(Java Doc) public Object getConstraintAt(int i)(Code)(Java Doc) protected ArrayList getConstraintList()(Code)(Java Doc) public SLayoutManager getLayout()(Code)(Java Doc) public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc) public void inviteEachComponent(ComponentVisitor visitor) throws Exception(Code)(Java Doc) protected boolean isShowingChildren()(Code)(Java Doc) protected void processContainerEvent(SContainerListener listener, SContainerEvent e)(Code)(Java Doc) public void remove(SComponent c)(Code)(Java Doc) public void remove(int index)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public void removeContainerListener(SContainerListener l)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public void setCG(ContainerCG cg)(Code)(Java Doc) public void setLayout(SLayoutManager l)(Code)(Java Doc) protected void setParentFrame(SFrame f)(Code)(Java Doc) public void updateCG()(Code)(Java Doc)
|
Methods inherited from org.wings.SComponent | final public void addComponentListener(SComponentListener l)(Code)(Java Doc) public void addDynamicStyle(Style style)(Code)(Java Doc) final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc) final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc) final public void addScriptListener(ScriptListener listener)(Code)(Java Doc) public void addStyle(String additionalCssClassName)(Code)(Java Doc) public Object clone()(Code)(Java Doc) protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc) public void fireFinalEvents()(Code)(Java Doc) protected void fireKeyEvents()(Code)(Java Doc) final public void fireRenderEvent(int type)(Code)(Java Doc) public ActionMap getActionMap()(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) public SBorder getBorder()(Code)(Java Doc) public ComponentCG getCG()(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) public SPopupMenu getComponentPopupMenu()(Code)(Java Doc) public Style getDynamicStyle(Selector selector)(Code)(Java Doc) public Collection getDynamicStyles()(Code)(Java Doc) public int getFocusTraversalIndex()(Code)(Java Doc) public SFont getFont()(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public int getHorizontalAlignment()(Code)(Java Doc) public InputMap getInputMap()(Code)(Java Doc) public InputMap getInputMap(int condition)(Code)(Java Doc) final protected int getListenerCount(Class type)(Code)(Java Doc) final protected Object[] getListenerList()(Code)(Java Doc) final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc) public String getLowLevelEventId()(Code)(Java Doc) final public String getName()(Code)(Java Doc) final public SContainer getParent()(Code)(Java Doc) public SFrame getParentFrame()(Code)(Java Doc) public SDimension getPreferredSize()(Code)(Java Doc) public RequestURL getRequestURL()(Code)(Java Doc) public boolean getResidesInForm()(Code)(Java Doc) public List<ScriptListener> getScriptListenerList()(Code)(Java Doc) public ScriptListener[] getScriptListeners()(Code)(Java Doc) final public Session getSession()(Code)(Java Doc) public boolean getShowAsFormComponent()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public int getVerticalAlignment()(Code)(Java Doc) public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc) protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isFocusOwner()(Code)(Java Doc) public boolean isRecursivelyVisible()(Code)(Java Doc) public boolean isReloadForced()(Code)(Java Doc) protected boolean isUpdatePossible()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected String paramString()(Code)(Java Doc) protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc) protected boolean processKeyEvents(String[] values)(Code)(Java Doc) protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) final void register()(Code)(Java Doc) public void reload()(Code)(Java Doc) final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc) final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc) final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc) final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc) final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc) final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc) final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc) final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc) final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc) final public void removeComponentListener(SComponentListener l)(Code)(Java Doc) public void removeDynamicStyle(Selector selector)(Code)(Java Doc) final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc) final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc) final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc) public void removeStyle(String cssStyleClassName)(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc) public void setActionMap(ActionMap actionMap)(Code)(Java Doc) public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc) public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc) public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc) public void setBackground(Color color)(Code)(Java Doc) public void setBorder(SBorder border)(Code)(Java Doc) public void setCG(ComponentCG newCG)(Code)(Java Doc) public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc) public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setFocusTraversalIndex(int index)(Code)(Java Doc) public void setFont(SFont font)(Code)(Java Doc) public void setForeground(Color color)(Code)(Java Doc) public void setHorizontalAlignment(int alignment)(Code)(Java Doc) public void setInputMap(InputMap inputMap)(Code)(Java Doc) public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc) public void setName(String uniqueName)(Code)(Java Doc) public void setNameRaw(String uncheckedName)(Code)(Java Doc) public void setParent(SContainer parent)(Code)(Java Doc) protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc) public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc) public void setReloadForced(boolean forced)(Code)(Java Doc) public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc) public void setStyle(String cssClassName)(Code)(Java Doc) public void setToolTipText(String t)(Code)(Java Doc) public void setVerticalAlignment(int alignment)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public String toString()(Code)(Java Doc) final void unregister()(Code)(Java Doc) public void update(Update update)(Code)(Java Doc) public void updateCG()(Code)(Java Doc) public void write(Device s) throws IOException(Code)(Java Doc)
|
|
|