com.cbse.jeasy
Class JEMenuItem

java.lang.Object
  extended by com.cbse.jeasy.JEObject
      extended by com.cbse.jeasy.JEMenuItem

public class JEMenuItem
extends JEObject

A class creating a JMenuItem.

Properties
namevaluescomment
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

Version:
%I%, %G%
Author:
H.Pfohl

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

JEMenuItem

public JEMenuItem(java.lang.String s)
Reads the properties from a string.

Parameters:
s - contains properties and values
See Also:
JE#PropertyString

JEMenuItem

public JEMenuItem()
Method Detail

getBackground

public java.awt.Color getBackground()

getForeground

public java.awt.Color getForeground()

getMenuFont

public java.awt.Font getMenuFont()

getMenuItem

public javax.swing.JMenuItem getMenuItem()

getComponent

public javax.swing.JComponent getComponent()
Gets the JComponent based on this JEasy Object

Overrides:
getComponent in class JEObject
Returns:
JComponent

getText

public java.lang.String getText()

getAntialiasing

public boolean getAntialiasing()
Gets the anialialising flag


setText

public void setText(java.lang.String name)

setEnabled

public void setEnabled(boolean b)
Description copied from class: JEObject
Enables or disables the inputfield

Overrides:
setEnabled in class JEObject

start

public void start()
Creates the jfc components using the properties

Overrides:
start in class JEObject
See Also:
JE#start

JEadd

public void JEadd(javax.swing.JMenu me)
Description copied from class: JEObject
Adds the JEObject (JMenuItem) to JMenu

Overrides:
JEadd in class JEObject

JEadd

public void JEadd(javax.swing.JPopupMenu me)
Description copied from class: JEObject
Adds the JEObject (JMenuItem) to JPopupMenu

Overrides:
JEadd in class JEObject