com.cbse.jeasy
Class JELabel

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

public class JELabel
extends JEObject

A class using a JLabel.

Properties
name values comment
id * Id of the object. Let it begin with LA_
text * Text to be displayed
background   Id of a color used as the background
foreground   Id of a color used as the foreground
font   Font of the text.
labelConstraints   Constraints for JLabel
icon   File for creating an ImageIcon
iconScaleWidth   Scales the icon of the label
iconScaleHeight   Scales the icon of the label
scaleAlgorithm   Sets the algorithm for scaling
horizontalAlignment LEFT
CENTER
RIGHT
LEADING
TRAILING
horizontalTextPosition LEADING
LEFT
CENTER
RIGHT
TRAILING
Sets the horizontal position of the text relative to the icon.
verticalTextPosition CENTER
TOP
BOTTOM
Sets the vertical position of the text relative to the icon.
* = 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
JELabel(java.lang.String s)
          Reads the properties from a string.
 
Method Summary
 boolean getAntialiasing()
          Gets the anialialising flag
 java.awt.Color getBackground()
          Gets the Color object
 javax.swing.JComponent getComponent()
          Gets the JComponent based on this JEasy Object
 java.awt.Font getFont()
           
 java.awt.Color getForeground()
          Gets the Color object
 java.awt.GradientPaint getGradientPaint()
           
 javax.swing.JLabel getJLabel()
          Gets the JLabel
 java.lang.String getText()
          Gets the text from JELabel
 java.awt.TexturePaint getTexturePaint()
           
 java.lang.String getXMLtag()
          Gets the XMLtag.
 void JEadd(java.awt.Container co, java.awt.LayoutManager lm)
          Adds the Component to a Container.
 void JEadd(java.lang.String border, java.awt.Container co)
          Adds the Component to a Container with BorderLayout.
 void setGradientPaint(java.awt.GradientPaint gp)
           
 void setIcon(javax.swing.Icon icon)
          Sets the icon
 void setText(java.lang.String text)
          Sets the text of JELabel
 void setXMLtag(java.lang.String s)
          Sets the XMLtag
 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, 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, 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

JELabel

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

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

getText

public java.lang.String getText()
Gets the text from JELabel


setText

public void setText(java.lang.String text)
Sets the text of JELabel


getXMLtag

public java.lang.String getXMLtag()
Gets the XMLtag. Returns the id if no XMLtag is specified

Overrides:
getXMLtag in class JEObject
Returns:
String

setXMLtag

public void setXMLtag(java.lang.String s)
Sets the XMLtag


setIcon

public void setIcon(javax.swing.Icon icon)
Sets the icon


getJLabel

public javax.swing.JLabel getJLabel()
Gets the JLabel


getComponent

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

Overrides:
getComponent in class JEObject
Returns:
JComponent

getAntialiasing

public boolean getAntialiasing()
Gets the anialialising flag


getForeground

public java.awt.Color getForeground()
Gets the Color object


getBackground

public java.awt.Color getBackground()
Gets the Color object


getFont

public java.awt.Font getFont()

setGradientPaint

public void setGradientPaint(java.awt.GradientPaint gp)

getGradientPaint

public java.awt.GradientPaint getGradientPaint()

getTexturePaint

public java.awt.TexturePaint getTexturePaint()

start

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

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

JEadd

public void JEadd(java.awt.Container co,
                  java.awt.LayoutManager lm)
Adds the Component to a Container. Uses the constraints when the LayoutManager is a GridBagLayout.

Overrides:
JEadd in class JEObject

JEadd

public void JEadd(java.lang.String border,
                  java.awt.Container co)
Adds the Component to a Container with BorderLayout.

Overrides:
JEadd in class JEObject