|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cbse.jeasy.JEObject
com.cbse.jeasy.JERadioButton
public class JERadioButton
A class using JRadioButton.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with RB_ |
| label |   | Text inside the button |
| buttongroup |   | Id of the buttongroup. Only one in this group can be selected |
| mandatory | true false |
Defines an entry as mandatory |
| icon |   | File for creating an ImageIcon |
| font |   | Font of the text. |
| mnemonic |   | The mnemonic key used by ALT+ |
| selected | true false |
Set true select this entry |
| constraints |   | Constraints when added in GridBagLayout |
* = property you have to set; bold = default value
| Field Summary |
|---|
| Fields inherited from class com.cbse.jeasy.JEObject |
|---|
DEVELOPPING, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_TIME, INPUT_ERRORS, NO_INPUT_ERROR, RUNNING |
| Constructor Summary | |
|---|---|
JERadioButton(java.lang.String s)
Reads the properties from a string |
|
| Method Summary | |
|---|---|
void |
backupEntry()
The current text will be stored internal to check against changes |
void |
clear()
Clear means set the default selected |
java.lang.Object |
deserializeValue(java.lang.String s)
Converts a String to the JClass of the JEObject If the JEObject is a Radiobutton, the function returns a Boolean. |
int |
examine()
Checks if an entry is mandatoy |
boolean |
getAntialiasing()
Gets the anialialising flag |
boolean |
getBackupEntry()
Gets the backuped text |
java.lang.String |
getButtonGroup()
Gets the buttongroup |
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
java.awt.Font |
getFont()
|
java.lang.String |
getIcon()
Gets the icon |
java.lang.Class |
getJClass()
Get the JClass |
java.lang.String |
getLabel()
Gets the label |
javax.swing.JRadioButton |
getRadioButton()
Gets the button |
java.lang.String |
getXMLtag()
Gets the XMLtag. |
boolean |
isMandatory()
Return if an entry is mandatory |
boolean |
isSelected()
Is it selected |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
JEadd(javax.swing.ButtonGroup bgrp)
Adds the JRadioButton to a ButtonGroup |
void |
JEadd(java.awt.Container co)
Adds the JRadioButton to a Container |
void |
JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
Adds the JRadioButton to a Container. |
void |
JEadd(java.lang.String border,
java.awt.Container co)
Adds the JRadioButton to a Container with a BorderLayout |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
restoreEntry()
Sets the entry of the component to the backuped value |
java.lang.String |
serializeValue()
Gets the value of the button as a String |
void |
setBackground(java.awt.Color c)
Sets the background of the radiobutton |
void |
setEnabled(boolean eb)
Enables/disables the textfield and the button |
void |
setMandatory(boolean b)
Sets the entry mandatory or not |
void |
setSelected(boolean b)
Set selected |
void |
setXMLtag(java.lang.String s)
Sets the XMLtag |
void |
start()
Creates jfc-Objects with the given properties. |
boolean |
wasEntryChanged()
The components compares the current entry with the data stored by backupEntry() |
| Methods inherited from class com.cbse.jeasy.JEObject |
|---|
getApplet, getApplLocale, getCenter, getEast, getElementAt, getElementSize, getId, getJCallBack, getMode, getName, getNorth, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getSouth, getStarted, getTitle, getType, getWest, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, isVisible, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEaddTab, removeProperties, removeProperty, setApplet, setApplLocale, setEditable, setEditable, setEnabled, setFocus, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JERadioButton(java.lang.String s)
s - contains properties and valuesJE#PropertyString| Method Detail |
|---|
public java.lang.String getLabel()
getLabel in class JEObjectpublic java.lang.String getButtonGroup()
public java.lang.Class getJClass()
getJClass in class JEObjectpublic javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic java.lang.String getIcon()
public void setMandatory(boolean b)
public boolean isMandatory()
public javax.swing.JRadioButton getRadioButton()
public boolean getAntialiasing()
public java.awt.Font getFont()
public java.lang.String getXMLtag()
getXMLtag in class JEObjectpublic void setXMLtag(java.lang.String s)
public java.lang.Object deserializeValue(java.lang.String s)
deserializeValue in class JEObjectpublic java.lang.String serializeValue()
serializeValue in class JEObjectpublic boolean isSelected()
public void setSelected(boolean b)
public void clear()
clear in class JEObjectpublic void setEnabled(boolean eb)
setEnabled in class JEObjectpublic void backupEntry()
backupEntry in class JEObjectpublic boolean getBackupEntry()
public void restoreEntry()
restoreEntry in class JEObjectpublic int examine()
public boolean wasEntryChanged()
wasEntryChanged in class JEObjectpublic void setBackground(java.awt.Color c)
public void start()
start in class JEObject
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
JEadd in class JEObjectContainer - where the JRadioButton is added
public void JEadd(java.lang.String border,
java.awt.Container co)
JEadd in class JEObjectString - "North" "South" "West" "East" "Center"Container - where the JRadioButton is addedpublic void JEadd(java.awt.Container co)
JEadd in class JEObjectContainer - where the JRadioButton is addedpublic void JEadd(javax.swing.ButtonGroup bgrp)
JEadd in class JEObjectButtonGroup - public void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||