com.cbse.jeasy
Class JEInternalFrame

java.lang.Object
  extended by com.cbse.jeasy.JEObject
      extended by com.cbse.jeasy.JEInternalFrame

public class JEInternalFrame
extends JEObject

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
namevaluescomment
id*Id of the object. Let it begin with IF_
title The title of the frame
xint valueThe x-coordinate of the top-left corner of the frame.
yint valueThe y-coordinate of the top-left corner of the frame.
widthint valueThe width of the frame in pixels.
heightint valueThe height of the frame in pixels.
layoutBorderLayoutThe layout of its contentPane. Default is BorderLayout
resizablefalse
true
Feature of the frame.
closablefalse
true
Feature of the frame.
maximizablefalse
true
Feature of the frame.
iconifiablefalse
true
Feature of the frame.
hgapint valueSets the horizontal gap between components in BorderLayout.
vgapint valueSets 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

Version:
%I%, %G%
Author:
H.Pfohl

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

JEInternalFrame

public JEInternalFrame(java.lang.String s)
Reads the properties from a string.

Parameters:
s - contains properties and values
See Also:
JE#PropertyString

JEInternalFrame

public JEInternalFrame()
Method Detail

getInternalFrame

public javax.swing.JInternalFrame getInternalFrame()

getComponent

public javax.swing.JComponent getComponent()
Gets the JComponent based on this JEasy Object

Overrides:
getComponent in class JEObject
Returns:
JComponent

getElementSize

public int getElementSize()
Description copied from class: JEObject
Gets the number of elements

Overrides:
getElementSize in class JEObject
Returns:
id of the JEObject or null

getElementAt

public java.lang.String getElementAt(int n)
Description copied from class: JEObject
Gets the component of element n

Overrides:
getElementAt in class JEObject
Returns:
id of the JEObject or null

getNorth

public java.lang.String getNorth()
Description copied from class: JEObject
Gets the North component when using a BorderLayout

Overrides:
getNorth in class JEObject
Returns:
id of the JEObject or null

getSouth

public java.lang.String getSouth()
Description copied from class: JEObject
Gets the South component when using a BorderLayout

Overrides:
getSouth in class JEObject
Returns:
id of the JEObject or null

getEast

public java.lang.String getEast()
Description copied from class: JEObject
Gets the East component when using a BoprderLayout

Overrides:
getEast in class JEObject
Returns:
id of the JEObject or null

getWest

public java.lang.String getWest()
Description copied from class: JEObject
Gets the West component when using a BorderLayout

Overrides:
getWest in class JEObject
Returns:
id of the JEObject or null

getCenter

public java.lang.String getCenter()
Description copied from class: JEObject
Gets the Center component when using a BorderLayout

Overrides:
getCenter in class JEObject
Returns:
id of the JEObject or null

addElement

public void addElement(java.lang.String s)

setNorth

public void setNorth(java.lang.String s)

setSouth

public void setSouth(java.lang.String s)

setEast

public void setEast(java.lang.String s)

setWest

public void setWest(java.lang.String s)

setCenter

public void setCenter(java.lang.String s)

start

public void start()
Creates the jfc components using the properties

Overrides:
start in class JEObject
Parameters:
co - the JPanel is the owner of the JInternalFrame
See Also:
JE#start

JEadd

public void JEadd(java.awt.Container co,
                  java.awt.LayoutManager lm)
Description copied from class: JEObject
Adds the JEObject to the Container and the Containers LayoutManager

Overrides:
JEadd in class JEObject

JEadd

public void JEadd(java.awt.Container co)
Description copied from class: JEObject
Adds the JEObject to the Container

Overrides:
JEadd in class JEObject

JEadd

public void JEadd(javax.swing.JDesktopPane co)
Description copied from class: JEObject
Adds the JEObject to a JDesktopPane

Overrides:
JEadd in class JEObject

JEadd

public void JEadd(java.lang.String border,
                  java.awt.Container co)
Description copied from class: JEObject
Adds the JEObject to a Container with a BorderLayout

Overrides:
JEadd in class JEObject

setFocus

public boolean setFocus()
Sets the focus on the first editable component

Overrides:
setFocus in class JEObject
Returns:
true if focus was set on the first editable component false else

clear

public void clear()
Clears the components in the component

Overrides:
clear in class JEObject

backupEntry

public void backupEntry()
Tells all elements to backup their entry

Overrides:
backupEntry in class JEObject

restoreEntry

public void restoreEntry()
Tells all elements to restore their backuped entry

Overrides:
restoreEntry in class JEObject

wasEntryChanged

public boolean wasEntryChanged()
The components compare the current entry with the data stored by backupEntry()

Overrides:
wasEntryChanged in class JEObject
Returns:
true data was changed

setEnabled

public void setEnabled(boolean b)
Enables or disables all inputfields in the panel

Overrides:
setEnabled in class JEObject