de.cbse.jeasy
Class JERadioButton
java.lang.Object
de.cbse.jeasy.JEObject
de.cbse.jeasy.JEComponent
de.cbse.jeasy.JERadioButton
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.FocusListener, java.awt.event.InputMethodListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.CaretListener, javax.swing.event.ChangeListener, javax.swing.event.DocumentListener, javax.swing.event.ListSelectionListener, javax.swing.event.MenuKeyListener, javax.swing.event.PopupMenuListener, javax.swing.event.TableModelListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener
public class JERadioButton
- extends JEComponent
Implements a JRadioButton.
See a demonstration in the program JEasyExample tab "Components".
Properties :
- id
The unique id of the root object.
- XMLTag
The xml tag used when serializing or deserializing the component in a JEMessage.
- referenceId
A reference for this jeasy object used to identify this type of jeasy object even if it was cloned. It is used for locale properties of the object and may be used for identification in messages. If no reference is set, the jeasy id will be set as default.
- label
The label of this component.
- font (reference to JEFont)
The font for this component.
- labelFont (reference to JEFont)
The font for the label.
- mnemonic
Sets the keyboard mnemonic on the current model. The mnemonic is the key which when combined with the look and feel's mouseless modifier (usually Alt) will activate this button if focus is contained somewhere within this button's ancestor window.
- toolTipText
The text to display in a tool tip. The text displays when the cursor lingers over the component.
- buttongroup (reference to JEButtonGroup)
The id of the buttongroup. Only one of this group can be selected.
- horizontalAlignment (possible values [ , LEFT, CENTER, RIGHT, LEADING, TRAILING])
Sets the horizontal alignment of the icon and text.
- horizontalTextPosition (possible values [ , LEFT, CENTER, RIGHT, LEADING, TRAILING])
Sets the horizontal position of the text relative to the icon.
- verticalAlignment (possible values [ , CENTER, TOP, BOTTOM])
Sets the vertical alignment of the icon and text.
- verticalTextPosition (possible values [ , CENTER, TOP, BOTTOM])
Sets the vertical position of the text relative to the icon.
- border (reference to JEBorder)
The border of this component.
- contentAreaFilled
Paint the region around the text on click.
- constraints (reference to JEConstraints)
The contraints for this component used for GridBagLayout Manager.
- selected
Sets whether or not this component is slected.
- focusable
Sets whether or not this component should get the focus.
- x
The x-coordinate of the location's top-left corner in the parent's coordinate space. Usable when the parent uses no LayoutManager.
- y
The y-coordinate of the location's top-left corner in the parent's coordinate space. Usable when the parent uses no LayoutManager.
- width
The width of the component.
- height
The height of the component.
- foreground (reference to JEColor)
Id of a color used as the foreground of the component.
- background (reference to JEColor)
Id of a color used as the background of the component.
- gradientPaint (reference to JEGradientPaint)
The id of the gradientPaint used as a background.
- texturePaint (reference to JETexturePaint)
The id of the JETexturePaint used as a background.
- visible
Sets whether or not this component is visible.
- enabled
Sets whether or not this component is enabled.
- icon (reference to JEImageIcon)
The icon displayed within this component.
- selectedIcon (reference to JEImageIcon)
Icon to be displayed, when the checkbox or radiobutton component is selected.
- scaleAlgorithm (possible values [ , SCALE_DEFAULT, SCALE_AREA_AVERAGING, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH])
The type of algorithm to use for image resampling.
- - SCALE_DEFAULT use the default image-scaling algorithm.
- - SCALE_AREA_AVERAGING use the Area Averaging image scaling algorithm.
The image object is free to substitute a different filter that performs the same algorithm yet
integrates more efficiently into the image infrastructure supplied by the toolkit.
- - SCALE_FAST choose an image-scaling algorithm that gives higher priority to scaling speed than smoothness of the scaled image.
- - SCALE_REPLICATE use the image scaling algorithm embodied in the ReplicateScaleFilter class.
The Image object is free to substitute a different filter that performs the same algorithm yet integrates more efficiently
into the imaging infrastructure supplied by the toolkit.
- - SCALE_SMOOTH choose an image-scaling algorithm that gives higher priority to image smoothness than scaling speed.
- iconScaleWidth
Scales the icon to this width.
- iconScaleHeight
Scales the icon to this height.
- rolloverForeground (reference to JEColor)
Id of the foreground color when the mousecursor is over the component.
- rolloverBackground (reference to JEColor)
Id of the background color when the mousecursor is over the component.
- rolloverText
Text to be displayed, when the mousecursor is over the component.
- rolloverIcon (reference to JEImageIcon)
Icon to be displayed, when the mousecursor is over the component.
- rolloverSelectedIcon (reference to JEImageIcon)
Icon to be displayed, when the mousecursor is over the selected component.
- disabledIcon (reference to JEImageIcon)
Icon to be displayed, when the component is not enabled.
- disabledSelectedIcon (reference to JEImageIcon)
Icon to be displayed, when the checkbox component is selected and disabled.
- pressedIcon (reference to JEImageIcon)
Icon to be displayed, when the button is pressed.
- pressedText
Text to be displayed, when the button is pressed.
- pressedForeground (reference to JEColor)
Id of the foreground color when the button is pressed.
- pressedBackground (reference to JEColor)
Id of the background color when the button is pressed.
- focusIcon (reference to JEImageIcon)
Icon to be displayed when the component has the focus.
- focusText (reference to String)
Text to be displayed when the component has the focus.
- animation (reference to JEAnimation)
The animation used for this object and, if it is defined for parentobjects, for all children.
- focusPainted
On focus a rectangle is drawn around the button.
- borderPainted
Sets the borderPainted property. If true and the button has a border, the border is painted. The default value is true.
- margin (reference to JEInsets)
The id of the JEInsets used as the button margin.
- Author:
- Harry Pfohl
| Fields inherited from class de.cbse.jeasy.JEComponent |
animated, backup, buttonBehind, caretPosition, component, endMarkPosition, enterPressed, isPressed, jeButtonBehind, label, labelBehind, labelText, parentId, scrollPane, tree, treeNode, window |
| Fields inherited from class de.cbse.jeasy.JEObject |
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW |
|
Method Summary |
void |
clear()
Deselect the button. |
javax.swing.JRadioButton |
getButton()
Deprecated. |
javax.swing.JRadioButton |
getJRadioButton()
Gets the JButton |
protected void |
init()
Initialization of the SWING objects. |
boolean |
isSelected()
Gets the state of the checkbox. |
void |
setSelected(boolean b)
Sets the state of the checkbox. |
void |
setupComponent()
Set the property values to the component. |
void |
setValue(boolean b)
Sets the state of the checkbox. |
void |
setValue(java.lang.String item)
Sets the state of the checkbox. |
| Methods inherited from class de.cbse.jeasy.JEComponent |
actionPerformed, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addListeners, backupEntry, caretPositionChanged, caretUpdate, changedUpdate, componentHidden, componentMoved, componentResized, componentShown, examine, examine, focusGained, focusLost, getAddableComponent, getAnimation, getBackupEntry, getButtonBehind, getClosedIcon, getColumns, getComponent, getDataType, getIcon, getJEButtonBehind, getJLabel, getJScrollpane, getLabel, getLabelBehind, getLabelText, getLeafIcon, getMandatory, getName, getOpenIcon, getParentId, getToolTipText, getTreeNode, getValue, getValueBeforeFocus, getValueNotNull, getValues, getWindow, inputMethodTextChanged, insertUpdate, isAnimated, isEditable, isExiting, isListening, isShowing, isVerified, isVisible, itemStateChanged, jCallBackInputVerifier, keyPressed, keyReleased, keyTyped, menuKeyPressed, menuKeyReleased, menuKeyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, propertyChange, refresh, remove, removeActionListeners, removeUpdate, repaint, restoreEntry, restoreValueBeforeFocus, setAnimated, setBackground, setBackground, setEnabled, setEnabled, setExiting, setFocus, setForeground, setForeground, setIcon, setListening, setMandatory, setParentId, setProperties, setText, setToolTipText, setTreeNode, setValueBeforeFocus, setValues, setVerified, setVisible, setVisible, stateChanged, tableChanged, textUpdate, timerTask, transferFocus, transferFocusBackward, treeCollapsed, treeExpanded, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, valueChanged, valueChanged, wasEntryChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened |
| Methods inherited from class de.cbse.jeasy.JEObject |
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, show |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JERadioButton
public JERadioButton(JELocaleProperties hm)
- Reads the properties from a HashMap
- Parameters:
s - contains properties and values- See Also:
JE#PropertyString
JERadioButton
public JERadioButton(JENode jen)
- Constructor based on a XML file parsed to a TreeNode.
- Parameters:
jen - - See Also:
JESaxParser
getButton
@Deprecated
public javax.swing.JRadioButton getButton()
- Deprecated.
- Gets the button
- Returns:
- JRadioButton
getJRadioButton
public javax.swing.JRadioButton getJRadioButton()
- Gets the JButton
- Returns:
- JRadioButton
setSelected
public void setSelected(boolean b)
- Sets the state of the checkbox.
isSelected
public boolean isSelected()
- Gets the state of the checkbox.
setValue
public void setValue(java.lang.String item)
- Sets the state of the checkbox.
False (case insensitive) or 0 deselects the checkbox.
Otherwise it will be selected.
- Overrides:
setValue in class JEComponent
setValue
public void setValue(boolean b)
- Sets the state of the checkbox.
init
protected void init()
- Initialization of the SWING objects.
- Overrides:
init in class JEComponent
clear
public void clear()
- Deselect the button. If the property selected is set, the radiobutton will be selected
setupComponent
public void setupComponent()
- Set the property values to the component.
- Overrides:
setupComponent in class JEComponent