|
||||||||
| 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.JECheckBox
public class JECheckBox
A class using JCheckBox.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with CH_ |
| label |   | Text of the checkbox |
| mnemonic |   | The keyboard mnemonic. |
| icon |   | File for creating an ImageIcon |
| tooltip |   | Text in Tooltip |
| constraints |   | Constraints when added in GridBagLayout |
| selected | true false |
a boolean value indicating the initial selection state. If true the checkbox is selected |
| visible | true false |
Set to false will hide the label and the field in panels and tables. |
| enabled | true false |
Set to false will disable the checkbox for changing. |
| markingBackground | true false |
Set to true will use the global background color. |
| mandatory | true false |
Defines an entry as mandatory |
* = 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 | |
|---|---|
JECheckBox(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()
Selection clear |
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 |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
boolean |
getAntialiasing()
Gets the anialialising flag |
boolean |
getBackupEntry()
Gets the backuped text |
javax.swing.JCheckBox |
getCheckBox()
Gets the JCheckBox |
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
java.lang.String |
geticon()
Gets the icon |
java.lang.Class |
getJClass()
Get the JClass |
java.lang.String |
getLabel()
Gets the text of the checkbox |
java.lang.String |
getMnemonic()
Gets the mnemonic of the field |
java.lang.String |
getXMLtag()
Gets the XMLtag. |
boolean |
isEditable()
See isEnabled() |
boolean |
isEnabled()
False if the state of the checkbox should not be changed in a Table or Panel |
boolean |
isMandatory()
Return if an entry is mandatory |
boolean |
isSelected()
Is it selected |
boolean |
isVisible()
False if the checkbox should not be shown in a Table or Panel |
void |
JEadd(java.awt.Container co)
Adds the JCheckBox to a Container |
void |
JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
Adds the JCheckBox to a Container. |
void |
JEadd(java.lang.String border,
java.awt.Container co)
Adds the JCheckBox to a Container with a BorderLayout |
void |
JEaddTab(javax.swing.JTabbedPane co,
java.awt.LayoutManager lm)
Adds the JCheckBox to a JTabbedPane with its LayoutManager |
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 checkbox |
void |
setEditable(boolean eb)
Enables/disables the box for check |
void |
setEnabled(boolean bv)
setEnabled of the checkbox |
void |
setMandatory(boolean b)
Sets the entry mandatory or not |
void |
setSelected(boolean b)
Set selected |
void |
setVisible(boolean bv)
setVisible of the checkbox |
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, isEnterprise, isProfessional, isStandard, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, removeProperties, removeProperty, setApplet, setApplLocale, setEditable, setEnabled, setFocus, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JECheckBox(java.lang.String s)
s - contains properties and valuesJE#PropertyString| Method Detail |
|---|
public java.lang.String getLabel()
getLabel in class JEObjectpublic java.lang.String getXMLtag()
getXMLtag in class JEObjectpublic java.lang.String getMnemonic()
public void setMandatory(boolean b)
public boolean isMandatory()
public void setXMLtag(java.lang.String s)
public java.lang.Class getJClass()
getJClass in class JEObjectpublic javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic java.lang.String geticon()
public javax.swing.JCheckBox getCheckBox()
public boolean getAntialiasing()
public boolean isSelected()
public void setSelected(boolean b)
public void setVisible(boolean bv)
setVisible in class JEObjectpublic boolean isVisible()
isVisible in class JEObjectpublic void setEnabled(boolean bv)
setEnabled in class JEObjectpublic boolean isEnabled()
isEnabled in class JEObjectpublic boolean isEditable()
isEditable in class JEObjectpublic void setEditable(boolean eb)
setEditable in class JEObjectpublic void clear()
clear in class JEObjectpublic void setBackground(java.awt.Color c)
public void backupEntry()
backupEntry in class JEObjectpublic boolean getBackupEntry()
public void restoreEntry()
restoreEntry in class JEObjectpublic int examine()
public boolean wasEntryChanged()
wasEntryChanged in class JEObjectpublic java.lang.Object deserializeValue(java.lang.String s)
deserializeValue in class JEObjectpublic java.lang.String serializeValue()
serializeValue in class JEObjectpublic void start()
start in class JEObject
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
JEadd in class JEObjectContainer - where the JCheckBox 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 JCheckBox is addedpublic void JEadd(java.awt.Container co)
JEadd in class JEObjectContainer - where the JCheckBox is added
public void JEaddTab(javax.swing.JTabbedPane co,
java.awt.LayoutManager lm)
JEaddTab in class JEObjectJTabbedPane - to hold the JEObjectLayoutManager - of the JTabbedPanepublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||