|
||||||||
| 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.JELabel
public class JELabel
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
| 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 |
|---|
public JELabel(java.lang.String s)
s - contains properties and valuesJE#PropertyString| Method Detail |
|---|
public java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.String getXMLtag()
getXMLtag in class JEObjectpublic void setXMLtag(java.lang.String s)
public void setIcon(javax.swing.Icon icon)
public javax.swing.JLabel getJLabel()
public javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic boolean getAntialiasing()
public java.awt.Color getForeground()
public java.awt.Color getBackground()
public java.awt.Font getFont()
public void setGradientPaint(java.awt.GradientPaint gp)
public java.awt.GradientPaint getGradientPaint()
public java.awt.TexturePaint getTexturePaint()
public void start()
start in class JEObjectJE#start
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
JEadd in class JEObject
public void JEadd(java.lang.String border,
java.awt.Container co)
JEadd in class JEObject
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||