Package jexer
Class TPanel
- java.lang.Object
-
- jexer.TWidget
-
- jexer.TPanel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTPanel.DirectionAvailable locations to draw the title, if the title is specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw()Draw an optional border and title.BorderStylegetBorderStyle()Get the border style for the panel.java.lang.StringgetTitle()Get panel title.TPanel.DirectiongetTitleDirection()Get panel title direction.voidonResize(TResizeEvent resize)Method that subclasses can override to handle window/screen resize events.voidsetBorderStyle(java.lang.String borderStyle)Set the border style for the panel.voidsetTitle(java.lang.String title)Set panel title.voidsetTitleDirection(TPanel.Direction direction)Set panel title direction.-
Methods inherited from class jexer.TWidget
activate, activate, activate, activateAll, addButton, addCalendar, addCheckBox, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addField, addImage, addImage, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addProgressBar, addRadioGroup, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, applyCellTransform, applyCellTransform, close, compareTo, doRepaint, drawBox, drawBoxShadow, drawChildren, drawForegroundBox, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getCustomMousePointer, getHeight, getLayoutManager, getLocale, getMouseStyle, getParent, getScreen, getTheme, getWidgetUnderMouse, getWidth, getWindow, getX, getY, handleEvent, hasChild, hForegroundLineXY, hLineXY, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isPixelMouse, isVisible, messageBox, messageBox, mouseWouldHit, onCommand, onIdle, onKeypress, onMenu, onMouseDoubleClick, onMouseDown, onMouseMotion, onMouseUp, putAll, putAttrXY, putAttrXY, putBackgroundAttrBox, putBackgroundAttrXY, putBackgroundAttrXY, putCharXY, putCharXY, putCharXY, putForegroundCharXY, putForegroundStringXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setCustomMousePointer, setDimensions, setEchoKeystrokes, setEchoKeystrokes, setEnabled, setHeight, setLayoutManager, setLocale, setMouseStyle, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY, vLineXY
-
-
-
-
Constructor Detail
-
TPanel
public TPanel(TWidget parent, int x, int y, int width, int height)
Public constructor.- Parameters:
parent- parent widgetx- column relative to parenty- row relative to parentwidth- width of widgetheight- height of widget
-
-
Method Detail
-
onResize
public void onResize(TResizeEvent resize)
Method that subclasses can override to handle window/screen resize events.
-
getTitle
public java.lang.String getTitle()
Get panel title.- Returns:
- the panel title
-
setTitle
public void setTitle(java.lang.String title)
Set panel title.- Parameters:
title- the new panel title
-
getTitleDirection
public TPanel.Direction getTitleDirection()
Get panel title direction.- Returns:
- one of Direction.TOP_LEFT, Direction.TOP, etc.
-
setTitleDirection
public void setTitleDirection(TPanel.Direction direction)
Set panel title direction.- Parameters:
direction- one of Direction.TOP_LEFT, Direction.TOP, etc.
-
setBorderStyle
public void setBorderStyle(java.lang.String borderStyle)
Set the border style for the panel.- Parameters:
borderStyle- the border style string, one of: "default", "none", "single", "double", "singleVdoubleH", "singleHdoubleV", or "round"; or null to use the value from jexer.TPanel.borderStyle.
-
getBorderStyle
public BorderStyle getBorderStyle()
Get the border style for the panel.- Returns:
- the border style
-
-