com.cbse.jeasy
Class JETheme

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

public class JETheme
extends JEObject

A class using a DefaultMetalTheme. See http://java.sun.com/products/jlf/dg/index.htm

Properties
namevaluescomment
id*Id of the object. Let it begin with TH_
name The name of the Theme.
acceleratorForeground  
acceleratorSelectedForeground  
black  
controlDarkShadow  
controlDisabled  
controlDarkShadow A color used for 3D effect button, textfield, panel
controlHighlight A color used for 3D effect button, textfield, panel
controlInfo A color used for textcolor of button, combobox, tabbedpane
control A color used for button, panel, tabbedpane, scrollpane, list
controlShadow A color used for background pushed button and not selected tabbedpane; border borderedpane
controlTextColor A color used for button, tabbedpane, selected text
desktopColor  
focusColor  
highlightedTextColor A color used for selected text
inactiveControlTextColor  
inactiveSystemTextColor  
menuBackground A color used for >background menu and toolbar
menuDisabledForeground  
menuForeground A color used for textcolor menu
menuSelectedBackground A color used for background selected menu
menuSelectedForeground A color used for textcolor selected menu
primary1 A color used for label, borderedpane text
primary2 A color used for selected menu, selected button, scrollbar background
primary3 A color used for selected text, scrollbar foreground, tooltip background
primaryControlDarkShadow A color used for menu border, tooltip border
primaryControlHighlight A color used for menu highlight border
primaryControlInfo A color used for tooltip font
primaryControl A color used for tooltip background, scrollbar pattern
primaryControlShadow A color used for selected comobobox, scrollbar background
secondary1 A color used for border of textfield, panel, tabbedpane, menubar
secondary2 A color used for selected button, not selected tabbedpane, border of bordered pane
secondary3 A color used for background of frame, panel, menu, toolbar
separatorBackground A color used for separatorBackground
separatorForeground A color used for separatorForeground
systemTextColor A color used for labels and borderedpane
textHighlightColor A color used for background selected text
userTextColor A color used for fontcolor of textfields and comboboxes
white  
windowBackground A color used for background of treenode and textfields
windowTitleBackground  
windowTitleForeground  
windowTitleInactiveBackground  
windowTitleInactiveForeground  
controlTextFont A font used for text borderedpane, label, button, combobox
menuTextFont A font used for text menu
subTextFont A font used for
systemTextFont A font used for treenode and tooltip
userTextFont A font used for text of textfields
windowTitleFont A font used for
* = 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
JETheme(java.lang.String s)
          Reads the properties from a string.
 
Method Summary
 javax.swing.plaf.metal.DefaultMetalTheme getDefaultMetalTheme()
          Returns the DefaultMetalTheme
 void update(java.lang.String s)
          Reads the properties from a XML string and sets the colors and fonts.
 
Methods inherited from class com.cbse.jeasy.JEObject
backupEntry, clear, deserializeValue, getApplet, getApplLocale, getCenter, getComponent, 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, 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, start, wasEntryChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JETheme

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

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

update

public void update(java.lang.String s)
Reads the properties from a XML string and sets the colors and fonts.

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

getDefaultMetalTheme

public javax.swing.plaf.metal.DefaultMetalTheme getDefaultMetalTheme()
Returns the DefaultMetalTheme