|
||||||||
| 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.JESplitPane
public class JESplitPane
A class using a JSplitPane.
JSplitPane is used to divide two (and only two) Components. The two Components are graphically divided based on the look and feel implementation. By user intervention the two Components can be interactively resized.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with SP_ |
| width | int value | The width of this component in pixels. |
| height | int value | The height of this component in pixels. |
| border |   | Id of a border. |
| layout |   | The layout of the splitpane. |
| background |   | Id of a color used as the background |
| constraints |   | Constraints when added in GridBagLayout |
| orientation | HORIZONTAL_SPLIT VERTICAL_SPLIT | Horizontal split indicates the Components are split along the x axis, eg the two Components will be split one to the left of the other. Vertical split indicates the Components are split along the y axis, eg the two Components will be split one on top of the other. |
| dividerLocation |   | Sets the divider location as a percentage of the JSplitPane's size from zero (top/left) to 1.0 (bottom/right). |
| E1 E2 |   | The two elements of the splitpane. |
* = 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 | |
|---|---|
JESplitPane()
|
|
JESplitPane(java.lang.String s)
Reads the properties from a string. |
|
| Method Summary | |
|---|---|
void |
backupEntry()
Tells all elements to backup their entry |
void |
clear()
Clears the components in the component |
java.awt.Color |
getBackground()
|
javax.swing.border.Border |
getBorder()
Get the border |
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
int |
getDividerLocation()
Gets the dividerLocation |
java.lang.String |
getElementAt(int n)
Gets the component of element n |
int |
getElementSize()
Gets the number of elements |
javax.swing.JSplitPane |
getSplitPane()
|
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(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 |
setDividerLocation(double dl)
Sets the dividerLocation |
void |
setDividerLocation(int dl)
Sets the dividerLocation |
void |
setEnabled(boolean b)
Enables or disables all inputfields in the panel |
boolean |
setFocus()
Sets the focus on the first editable component |
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, getCenter, getEast, 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, 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 JESplitPane(java.lang.String s)
s - contains properties and valuesJE#PropertyStringpublic JESplitPane()
| Method Detail |
|---|
public javax.swing.JSplitPane getSplitPane()
public java.awt.Color getBackground()
public javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic javax.swing.border.Border getBorder()
public int getElementSize()
JEObject
getElementSize in class JEObjectpublic java.lang.String getElementAt(int n)
JEObject
getElementAt in class JEObjectpublic void start()
start in class JEObjectJE#startpublic void setDividerLocation(double dl)
public void setDividerLocation(int dl)
public int getDividerLocation()
public 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 JEObjectpublic void JEadd(java.awt.Container co)
JEObject
JEadd in class JEObject
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
JEObject
JEadd in class JEObject
public void JEadd(java.lang.String border,
java.awt.Container co)
JEObject
JEadd in class JEObject
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||