|
||||||||
| 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.JEInternalFrame
public class JEInternalFrame
A class using a JInternalFrame. It is an object that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar. Generally, you will create an instance and add it to a JDesktopPane.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with IF_ |
| title |   | The title of the frame |
| x | int value | The x-coordinate of the top-left corner of the frame. |
| y | int value | The y-coordinate of the top-left corner of the frame. |
| width | int value | The width of the frame in pixels. |
| height | int value | The height of the frame in pixels. |
| layout | BorderLayout | The layout of its contentPane. Default is BorderLayout |
| resizable | false true | Feature of the frame. |
| closable | false true | Feature of the frame. |
| maximizable | false true | Feature of the frame. |
| iconifiable | false true | Feature of the frame. |
| hgap | int value | Sets the horizontal gap between components in BorderLayout. |
| vgap | int value | Sets the vertical gap between components in BorderLayout. |
| North |   | Component in the North in Borderlayout. |
| South |   | Component in the South in Borderlayout |
| East |   | Component in the East in Borderlayout |
| West |   | Component in the West in Borderlayout |
| Center |   | Component in the Center in Borderlayout |
| E1 . En |   | Elements to be shown in the frame. |
* = 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 | |
|---|---|
JEInternalFrame()
|
|
JEInternalFrame(java.lang.String s)
Reads the properties from a string. |
|
| Method Summary | |
|---|---|
void |
addElement(java.lang.String s)
|
void |
backupEntry()
Tells all elements to backup their entry |
void |
clear()
Clears the components in the component |
java.lang.String |
getCenter()
Gets the Center component when using a BorderLayout |
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
java.lang.String |
getEast()
Gets the East component when using a BoprderLayout |
java.lang.String |
getElementAt(int n)
Gets the component of element n |
int |
getElementSize()
Gets the number of elements |
javax.swing.JInternalFrame |
getInternalFrame()
|
java.lang.String |
getNorth()
Gets the North component when using a BorderLayout |
java.lang.String |
getSouth()
Gets the South component when using a BorderLayout |
java.lang.String |
getWest()
Gets the West component when using a BorderLayout |
void |
JEadd(java.awt.Container co)
Adds the JEObject to the Container |
void |
JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
Adds the JEObject to the Container and the Containers LayoutManager |
void |
JEadd(javax.swing.JDesktopPane co)
Adds the JEObject to a JDesktopPane |
void |
JEadd(java.lang.String border,
java.awt.Container co)
Adds the JEObject to a Container with a BorderLayout |
void |
restoreEntry()
Tells all elements to restore their backuped entry |
void |
setCenter(java.lang.String s)
|
void |
setEast(java.lang.String s)
|
void |
setEnabled(boolean b)
Enables or disables all inputfields in the panel |
boolean |
setFocus()
Sets the focus on the first editable component |
void |
setNorth(java.lang.String s)
|
void |
setSouth(java.lang.String s)
|
void |
setWest(java.lang.String s)
|
void |
start()
Creates the jfc components using the properties |
boolean |
wasEntryChanged()
The components compare the current entry with the data stored by backupEntry() |
| Methods inherited from class com.cbse.jeasy.JEObject |
|---|
deserializeValue, getApplet, getApplLocale, getId, getJCallBack, getJClass, getLabel, getMode, getName, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getStarted, getTitle, getType, getXMLtag, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, isVisible, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEaddTab, removeProperties, removeProperty, serializeValue, setApplet, setApplLocale, setEditable, setEditable, setEnabled, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEInternalFrame(java.lang.String s)
s - contains properties and valuesJE#PropertyStringpublic JEInternalFrame()
| Method Detail |
|---|
public javax.swing.JInternalFrame getInternalFrame()
public javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic int getElementSize()
JEObject
getElementSize in class JEObjectpublic java.lang.String getElementAt(int n)
JEObject
getElementAt in class JEObjectpublic java.lang.String getNorth()
JEObject
getNorth in class JEObjectpublic java.lang.String getSouth()
JEObject
getSouth in class JEObjectpublic java.lang.String getEast()
JEObject
getEast in class JEObjectpublic java.lang.String getWest()
JEObject
getWest in class JEObjectpublic java.lang.String getCenter()
JEObject
getCenter in class JEObjectpublic void addElement(java.lang.String s)
public void setNorth(java.lang.String s)
public void setSouth(java.lang.String s)
public void setEast(java.lang.String s)
public void setWest(java.lang.String s)
public void setCenter(java.lang.String s)
public void start()
start in class JEObjectco - the JPanel is the owner of the JInternalFrameJE#start
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
JEObject
JEadd in class JEObjectpublic void JEadd(java.awt.Container co)
JEObject
JEadd in class JEObjectpublic void JEadd(javax.swing.JDesktopPane co)
JEObject
JEadd in class JEObject
public void JEadd(java.lang.String border,
java.awt.Container co)
JEObject
JEadd in class JEObjectpublic boolean setFocus()
setFocus in class JEObjectpublic void clear()
clear in class JEObjectpublic void backupEntry()
backupEntry in class JEObjectpublic void restoreEntry()
restoreEntry in class JEObjectpublic boolean wasEntryChanged()
wasEntryChanged in class JEObjectpublic void setEnabled(boolean b)
setEnabled in class JEObject
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||