|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.matthiasmann.twl.Widget
de.matthiasmann.twl.SplitPane
public class SplitPane
| Nested Class Summary | |
|---|---|
static class |
SplitPane.Direction
|
| Nested classes/interfaces inherited from class de.matthiasmann.twl.Widget |
|---|
Widget.OffscreenMouseAdjustments, Widget.RenderOffscreen |
| Field Summary | |
|---|---|
static int |
CENTER
Magic constant for setSplitPosition(int) to keep both
widgets on equal size. |
static int |
MIN_SIZE
Magic constant for setSplitPosition(int) to keep the first
(or second widget when getReverseSplitPosition() is active)
in it's minimum size. |
static int |
PREFERRED_SIZE
Magic constant for setSplitPosition(int) to keep the first
(or second widget when getReverseSplitPosition() is active)
in it's preferred size. |
| Fields inherited from class de.matthiasmann.twl.Widget |
|---|
STATE_DISABLED, STATE_HAS_FOCUSED_CHILD, STATE_HAS_OPEN_POPUPS, STATE_KEYBOARD_FOCUS |
| Constructor Summary | |
|---|---|
SplitPane()
|
|
| Method Summary | |
|---|---|
protected void |
childAdded(Widget child)
A new child has been added. |
protected void |
childRemoved(Widget exChild)
A child has been removed. |
SplitPane.Direction |
getDirection()
|
int |
getMaxSplitPosition()
|
int |
getMinHeight()
Returns the minimum height of the widget. |
int |
getMinWidth()
Returns the minimum width of the widget. |
int |
getPreferredInnerHeight()
Computes the preferred inner height (the size of the widget without the border) The default implementation uses the current position of the children. |
int |
getPreferredInnerWidth()
Computes the preferred inner width (the size of the widget without the border) The default implementation uses the current position of the children. |
boolean |
getReverseSplitPosition()
|
int |
getSplitPosition()
|
boolean |
isRespectMinSizes()
|
protected void |
layout()
Called when the layoutInvalid flag is set. |
void |
setDirection(SplitPane.Direction direction)
|
void |
setRespectMinSizes(boolean respectMinSizes)
|
void |
setReverseSplitPosition(boolean reverseSplitPosition)
|
void |
setSplitPosition(int pos)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CENTER
setSplitPosition(int) to keep both
widgets on equal size.
public static final int MIN_SIZE
setSplitPosition(int) to keep the first
(or second widget when getReverseSplitPosition() is active)
in it's minimum size.
public static final int PREFERRED_SIZE
setSplitPosition(int) to keep the first
(or second widget when getReverseSplitPosition() is active)
in it's preferred size.
| Constructor Detail |
|---|
public SplitPane()
| Method Detail |
|---|
public SplitPane.Direction getDirection()
public void setDirection(SplitPane.Direction direction)
public int getMaxSplitPosition()
public int getSplitPosition()
public void setSplitPosition(int pos)
public boolean getReverseSplitPosition()
public void setReverseSplitPosition(boolean reverseSplitPosition)
public boolean isRespectMinSizes()
public void setRespectMinSizes(boolean respectMinSizes)
protected void childRemoved(Widget exChild)
Widget
childRemoved in class WidgetexChild - the removed widget - no longer a childWidget.invalidateLayout()protected void childAdded(Widget child)
Widget
childAdded in class Widgetchild - the new childWidget.invalidateLayout()public int getMinWidth()
Widget
getMinWidth in class Widgetpublic int getMinHeight()
Widget
getMinHeight in class Widgetpublic int getPreferredInnerWidth()
Widget
getPreferredInnerWidth in class Widgetpublic int getPreferredInnerHeight()
Widget
getPreferredInnerHeight in class Widgetprotected void layout()
Widget
layout in class Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||