|
||||||||
| 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.JEEditorPane
public class JEEditorPane
A class using a JEditorPane to build an Outputfield for text.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with EP_ |
| url |   | A string containing a URL specification. |
| text |   | Text to initialize the EditorPane. |
| scrollpane | true false |
When set to true, the panel will be scrollable. |
| contenttype |   | Mime type of the text. |
| tooltip |   | Text in Tooltip |
| mandatory | true false |
Defines an entry as mandatory |
| background |   | Id of a color used as the background |
| foreground |   | Id of a color used as the foreground |
* = 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 | |
|---|---|
JEEditorPane(java.lang.String s)
Reads the properties from a string. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the Text |
int |
examine()
Checks and formats the entry of the textfield. |
int |
examine(java.lang.String s)
|
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 |
javax.swing.JEditorPane |
getEditorPane()
Returns the JEditorPane object |
java.awt.Color |
getForeground()
Gets the Color object |
java.lang.String |
getText()
Returns the text contained in this TextComponent in terms of the content type of this editor. |
java.lang.String |
getToolTip()
Gets the toolTipText |
java.lang.String |
getXMLtag()
Gets the XMLtag. |
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Notification of a change relative to a hyperlink. |
boolean |
isMandatory()
Return if an entry is mandatory |
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 JEObject to a Container with a BorderLayout |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
protected void |
linkActivated(java.net.URL u)
Follows the reference in an link. |
void |
setEditable(boolean b)
Allow a field to be editable |
void |
setMandatory(boolean b)
Sets the entry mandatory or not |
void |
setPage(java.lang.String surl)
Sets the current URL beeing displayed. |
void |
setText(java.lang.String text)
Sets the text of this TextComponent to the specified content, which is expected to be in the format of the content type of this editor. |
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, 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, 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 JEEditorPane(java.lang.String s)
s - contains properties and valuesJE#PropertyString| Method Detail |
|---|
public java.lang.String getText()
public javax.swing.JEditorPane getEditorPane()
public javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic java.lang.String getXMLtag()
getXMLtag in class JEObjectpublic void setEditable(boolean b)
setEditable in class JEObjectpublic void setMandatory(boolean b)
public boolean isMandatory()
public void setXMLtag(java.lang.String s)
public void setText(java.lang.String text)
public boolean getAntialiasing()
public java.awt.Color getForeground()
public java.awt.Color getBackground()
public void setPage(java.lang.String surl)
public java.lang.String getToolTip()
public void clear()
clear in class JEObjectpublic int examine()
public int examine(java.lang.String s)
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)
JEObject
JEadd in class JEObjectpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
hyperlinkUpdate in interface javax.swing.event.HyperlinkListenerprotected void linkActivated(java.net.URL u)
u - the URL to follow
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||