Constructor and Description |
---|
TRadioGroup(TWidget parent,
int x,
int y,
java.lang.String label)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
TRadioButton |
addRadioButton(java.lang.String label)
Convenience function to add a radio button to this group.
|
void |
draw()
Draw a radio button with label.
|
int |
getSelected()
Get the radio button ID that was selected.
|
void |
setHeight(int height)
Override TWidget's height: we can only set height at construction
time.
|
void |
setSelected(int id)
Set the new selected radio button.
|
void |
setWidth(int width)
Override TWidget's width: we can only set width at construction time.
|
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, onMouseDown, onMouseMotion, onMouseUp, onResize, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEnabled, setLayoutManager, setParent, setupForTWindow, setVisible, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
public TRadioGroup(TWidget parent, int x, int y, java.lang.String label)
parent
- parent widgetx
- column relative to parenty
- row relative to parentlabel
- label to display on the group boxpublic void setWidth(int width)
public void setHeight(int height)
public int getSelected()
public void setSelected(int id)
id
- ID of the selected button, or 0 to unselectpublic TRadioButton addRadioButton(java.lang.String label)
label
- label to display next to (right of) the radiobuttonCopyright © 2019 Kevin Lamonte. Licensed MIT.