|
||||||||
| 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.JEMenuItem
public class JEMenuItem
A class creating a JMenuItem.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with MI_ |
| name |   | The text of the menuitem. |
| command |   | Sets the action command. If no command is given the id will be set as the action command. |
| background |   | Id of a color used as the background |
| foreground |   | Id of a color used as the textcolor |
| mnemonic |   | The keyboard mnemonic. |
| icon |   | File for creating an ImageIcon shown in the menuitem. |
| tooltip |   | A text that pop up when the cursor lingers over this component. |
* = 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 | |
|---|---|
JEMenuItem()
|
|
JEMenuItem(java.lang.String s)
Reads the properties from a string. |
|
| Method Summary | |
|---|---|
boolean |
getAntialiasing()
Gets the anialialising flag |
java.awt.Color |
getBackground()
|
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
java.awt.Color |
getForeground()
|
java.awt.Font |
getMenuFont()
|
javax.swing.JMenuItem |
getMenuItem()
|
java.lang.String |
getText()
|
void |
JEadd(javax.swing.JMenu me)
Adds the JEObject (JMenuItem) to JMenu |
void |
JEadd(javax.swing.JPopupMenu me)
Adds the JEObject (JMenuItem) to JPopupMenu |
void |
setEnabled(boolean b)
Enables or disables the inputfield |
void |
setText(java.lang.String name)
|
void |
start()
Creates the jfc components using the properties |
| Methods inherited from class com.cbse.jeasy.JEObject |
|---|
backupEntry, clear, deserializeValue, getApplet, getApplLocale, getCenter, getEast, getElementAt, getElementSize, getId, getJCallBack, getJClass, getLabel, getMode, getName, getNorth, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getSouth, getStarted, getTitle, getType, getWest, getXMLtag, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, isVisible, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEaddTab, removeProperties, removeProperty, restoreEntry, serializeValue, setApplet, setApplLocale, setEditable, setEditable, setEnabled, setFocus, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, setVisible, wasEntryChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEMenuItem(java.lang.String s)
s - contains properties and valuesJE#PropertyStringpublic JEMenuItem()
| Method Detail |
|---|
public java.awt.Color getBackground()
public java.awt.Color getForeground()
public java.awt.Font getMenuFont()
public javax.swing.JMenuItem getMenuItem()
public javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic java.lang.String getText()
public boolean getAntialiasing()
public void setText(java.lang.String name)
public void setEnabled(boolean b)
JEObject
setEnabled in class JEObjectpublic void start()
start in class JEObjectJE#startpublic void JEadd(javax.swing.JMenu me)
JEObject
JEadd in class JEObjectpublic void JEadd(javax.swing.JPopupMenu me)
JEObject
JEadd in class JEObject
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||