|
||||||||
| 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.JEOptionPane
public class JEOptionPane
A class using a JOptionPane.
JOptionPane is a simple way to create dialog boxes
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with OP_ |
| title |   | The title of the optionpane |
| dialogType | ConfirmDialog InputDialog MessageDialog OptionDialog |
The dialogtype to present the message |
| messageType | ERROR_MESSAGE INFORMATION_MESSAGE WARNING_MESSAGE QUESTION_MESSAGE PLAIN_MESSAGE |
The type of the message presentation. |
| message |   | The text lines to be shown in the dialogbox. |
| optionType | DEFAULT_OPTION YES_NO_OPTION YES_NO_CANCEL_OPTION OK_CANCEL_OPTION |
Defines the set of option buttons that appear at the bottom of the dialog box. |
| icon |   | A decorative icon to be placed in the dialog box. |
* = 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 | |
|---|---|
JEOptionPane()
|
|
JEOptionPane(java.lang.String s)
Reads the properties from a string. |
|
| Method Summary | |
|---|---|
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
java.lang.String |
getMessage()
Gets the text in the messagebox |
void |
setMessage(java.lang.String s)
Sets the text in the messagebox |
void |
setTitle(java.lang.String s)
Sets the title in the messagebox |
java.lang.Object |
showOptionPane()
Shows the dialog at position and size of properties. |
java.lang.Object |
showOptionPane(java.awt.Component parentComponent)
Shows the dialog at position and size of properties. |
java.lang.Object |
showOptionPane(java.awt.Component parentComponent,
java.lang.String title,
java.lang.String message)
Shows the optionPane with given title and message and stes the parent of the dialog |
java.lang.Object |
showOptionPane(java.lang.String title,
java.lang.String message)
Shows the optionPane with given title and message |
void |
start()
Creates the jfc components using the properties |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| 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, 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, wasEntryChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEOptionPane(java.lang.String s)
s - contains properties and valuesJE#PropertyStringpublic JEOptionPane()
| Method Detail |
|---|
public void setMessage(java.lang.String s)
public java.lang.String getMessage()
public void setTitle(java.lang.String s)
public javax.swing.JComponent getComponent()
getComponent in class JEObject
public java.lang.Object showOptionPane(java.lang.String title,
java.lang.String message)
public java.lang.Object showOptionPane(java.awt.Component parentComponent,
java.lang.String title,
java.lang.String message)
public java.lang.Object showOptionPane()
public java.lang.Object showOptionPane(java.awt.Component parentComponent)
parentComponent -
public void start()
start in class JEObjectJE#startpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||