Constructor and Description |
---|
TSplitPane(TWidget parent,
int x,
int y,
int width,
int height,
boolean vertical)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
center()
Recenter the split to the middle of this split pane.
|
void |
draw()
Draw me on screen.
|
TWidget |
getBottom()
Get the widget on the bottom side.
|
TWidget |
getLeft()
Get the widget on the left side.
|
TWidget |
getRight()
Get the widget on the right side.
|
TWidget |
getTop()
Get the widget on the top side.
|
void |
onMouseDown(TMouseEvent mouse)
Handle mouse button presses.
|
void |
onMouseMotion(TMouseEvent mouse)
Handle mouse movements.
|
void |
onMouseUp(TMouseEvent mouse)
Handle mouse button releases.
|
void |
onResize(TResizeEvent event)
Handle window/screen resize events.
|
TWidget |
removeSplit(TWidget widgetToRemove,
boolean doClose)
Remove this split, removing the widget specified.
|
void |
removeWidget(TWidget widget)
Remove a widget, regardless of what pane it is on.
|
void |
replaceWidget(TWidget oldWidget,
TWidget newWidget)
Replace a widget, regardless of what pane it is on, with another
widget.
|
void |
setBottom(TWidget bottom)
Set the widget on the bottom side.
|
void |
setLeft(TWidget left)
Set the widget on the left side.
|
void |
setRight(TWidget right)
Set the widget on the right side.
|
void |
setTop(TWidget top)
Set the widget on the top side.
|
java.lang.String |
toString()
Generate a human-readable string for this widget.
|
activate, activate, activate, activateAll, addButton, addCalendar, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getScreen, getTheme, getWidth, getWindow, getX, getY, handleEvent, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onCommand, onIdle, onKeypress, onMenu, onMouseDoubleClick, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, vLineXY
public TSplitPane(TWidget parent, int x, int y, int width, int height, boolean vertical)
parent
- parent widgetx
- column relative to parenty
- row relative to parentwidth
- width of widgetheight
- height of widgetvertical
- if true, split verticallypublic void onResize(TResizeEvent event)
public void onMouseDown(TMouseEvent mouse)
onMouseDown
in class TWidget
mouse
- mouse button eventpublic void onMouseUp(TMouseEvent mouse)
public void onMouseMotion(TMouseEvent mouse)
onMouseMotion
in class TWidget
mouse
- mouse motion eventpublic java.lang.String toString()
public TWidget getLeft()
public void setLeft(TWidget left)
left
- the widget to set, or null to removepublic TWidget getRight()
public void setRight(TWidget right)
right
- the widget to set, or null to removepublic TWidget getTop()
public void setTop(TWidget top)
top
- the widget to set, or null to removepublic TWidget getBottom()
public void setBottom(TWidget bottom)
bottom
- the widget to set, or null to removepublic void removeWidget(TWidget widget)
widget
- the widget to removepublic void replaceWidget(TWidget oldWidget, TWidget newWidget)
oldWidget
- the widget to removenewWidget
- the widget to replace it withpublic void center()
public TWidget removeSplit(TWidget widgetToRemove, boolean doClose)
widgetToRemove
- the widget to removedoClose
- if true, call the close() method before removing the
childCopyright © 2019 Kevin Lamonte. Licensed MIT.