com.cbse.jeasy
Class JEMenu

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

public class JEMenu
extends JEObject

A class creating a JMenu out of JEMenuItems.

Properties
name values comment
id * Id of the object. Let it begin with ME_
name   The menu label.
background   Id of a color used as the background
foreground   Id of a color used as the textcolor
mnemonic   The keyboard mnemonic.
E1
.
En
  JEMenuItems to be added in the menu.
* = 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
JEMenu()
           
JEMenu(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.lang.String getElementAt(int n)
          Gets the component of element n
 int getElementSize()
          Gets the number of elements
 java.awt.Color getForeground()
           
 javax.swing.JMenu getMenu()
           
 java.awt.Font getMenuFont()
           
 java.lang.String getMnemonic()
           
 java.lang.String getName()
          Gets the label of the JEObject
 javax.swing.JPopupMenu getPopupMenu()
           
 java.lang.String getQuickinfo()
           
 void JEadd(javax.swing.JMenu mme)
          Adds the JEObject (JMenuItem) to JMenu
 void JEadd(javax.swing.JMenuBar mb)
          Adds the JEObject (JMenu) to JMenuBar
 void JEadd(javax.swing.JPopupMenu mme)
          Adds the JEObject (JMenuItem) to JPopupMenu
 void setBackground(java.lang.String background)
           
 void setForeground(java.lang.String foreground)
           
 void setMnemonic(java.lang.String mnemonic)
           
 void setName(java.lang.String name)
           
 void setQuickinfo(java.lang.String quickinfo)
           
 void start()
          Creates the jfc components using the properties
 
Methods inherited from class com.cbse.jeasy.JEObject
backupEntry, clear, deserializeValue, getApplet, getApplLocale, getCenter, getEast, getId, getJCallBack, getJClass, getLabel, getMode, 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, JEaddTab, removeProperties, removeProperty, restoreEntry, serializeValue, setApplet, setApplLocale, setEditable, setEditable, setEnabled, 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

JEMenu

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

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

JEMenu

public JEMenu()
Method Detail

getElementSize

public int getElementSize()
Description copied from class: JEObject
Gets the number of elements

Overrides:
getElementSize in class JEObject
Returns:
id of the JEObject or null

getBackground

public java.awt.Color getBackground()

getForeground

public java.awt.Color getForeground()

getElementAt

public java.lang.String getElementAt(int n)
Description copied from class: JEObject
Gets the component of element n

Overrides:
getElementAt in class JEObject
Returns:
id of the JEObject or null

getMenu

public javax.swing.JMenu getMenu()

getComponent

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

Overrides:
getComponent in class JEObject
Returns:
JComponent

getPopupMenu

public javax.swing.JPopupMenu getPopupMenu()

getMenuFont

public java.awt.Font getMenuFont()

getAntialiasing

public boolean getAntialiasing()
Gets the anialialising flag


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.JMenuBar mb)
Description copied from class: JEObject
Adds the JEObject (JMenu) to JMenuBar

Overrides:
JEadd in class JEObject

JEadd

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

Overrides:
JEadd in class JEObject

JEadd

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

Overrides:
JEadd in class JEObject

getMnemonic

public java.lang.String getMnemonic()
Returns:
Returns the mnemonic.

setMnemonic

public void setMnemonic(java.lang.String mnemonic)
Parameters:
mnemonic - The mnemonic to set.

getName

public java.lang.String getName()
Description copied from class: JEObject
Gets the label of the JEObject

Overrides:
getName in class JEObject
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getQuickinfo

public java.lang.String getQuickinfo()
Returns:
Returns the quickinfo.

setQuickinfo

public void setQuickinfo(java.lang.String quickinfo)
Parameters:
quickinfo - The quickinfo to set.

setBackground

public void setBackground(java.lang.String background)
Parameters:
background - The background to set.

setForeground

public void setForeground(java.lang.String foreground)
Parameters:
foreground - The foreground to set.