com.cbse.jeasy
Class JEConstraints

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

public class JEConstraints
extends JEObject

A class building a GridBagConstraints.

Properties
namevaluescomment
id*Id of the object. Let it begin with CS_
anchorCENTER
NORTH
NORTHEAST
EAST
SOUTHEAST
SOUTH
SOUTHWEST
WEST
NORTHWEST
This field is used when the component is smaller than its display area. It determines where, within the display area, to place the component.
gridxint value
RELATIVE
Specifies the cell at the left of the component's display area, where the leftmost cell has gridx = 0. The value RELATIVE specifies that the component be placed just to the right of the component that was added to the container just before this component was added.
gridyint value
RELATIVE
Specifies the cell at the top of the component's display area, where the topmost cell has gridy = 0. The value RELATIVE specifies that the component be placed just below the component that was added to the container just before this component was added.
gridwidthint value
1
REMAINDER
RELATIVE
Specifies the number of cells in a row for the component's display area.
Use REMAINDER to specify that the component be the last one in its row. Use RELATIVE to specify that the component be the next-to-last one in its row. The default value is 1.
gridheightint value
1
REMAINDER
RELATIVE
Specifies the number of cells in a column for the component's display area.
Use REMAINDER to specify that the component be the last one in its column. Use RELATIVE to specify that the component be the next-to-last one in its column. The default value is 1.
weightxdouble value
0
Specifies how to distribute extra horizontal space.
The grid bag layout manager calculates the weight of a column to be the maximum weighty of all the components in a row. If the resulting layout is smaller horizontally than the area it needs to fill, the extra space is distributed to each column in proportion to its weight. A column that has a weight zero receives no extra space.
If all the weights are zero, all the extra space appears between the grids of the cell and the left and right edges.
weightydouble value
0
Specifies how to distribute extra vertical space.
The grid bag layout manager calculates the weight of a row to be the maximum weightx of all the components in a row. If the resulting layout is smaller vertically than the area it needs to fill, the extra space is distributed to each row in proportion to its weight. A row that has a weight of zero receives no extra space.
If all the weights are zero, all the extra space appears between the grids of the cell and the top and bottom edges.
fillint value
NONE
HORIZONTAL
VERTICAL
BOTH
This field is used when the component's display area is larger than the component's requested size. It determines whether to resize the component, and if so, how. The following values are valid for fill:
- NONE: Do not resize the component.
- HORIZONTAL: Make the component wide enough to fill its display area horizontally, but do not change its height.
- VERTICAL: Make the component tall enough to fill its display area vertically, but do not change its width.
- BOTH: Make the component fill its display area entirely.
ipadxint value
0
This field specifies the internal padding of the component, how much space to add to the minimum width of the component. The width of the component is at least its minimum width plus (ipadx * 2) pixels.
ipadyint value
0
This field specifies the internal padding, that is, how much space to add to the minimum height of the component. The height of the component is at least its minimum height plus (ipady * 2) pixels.
insets&bnspThis field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.
* = 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
JEConstraints()
           
JEConstraints(java.lang.String s)
          Reads the properties from a string.
 
Method Summary
 int getanchor()
           
 java.awt.GridBagConstraints getConstraints()
           
 int getfill()
           
 int getgridheight()
           
 int getgridwidth()
           
 int getgridx()
           
 int getgridy()
           
 java.awt.Insets getinsets()
           
 int getipadx()
           
 int getipady()
           
 double getweightx()
           
 double getweighty()
           
 void start()
          Creates the jfc components using the properties
 
Methods inherited from class com.cbse.jeasy.JEObject
backupEntry, clear, deserializeValue, getApplet, getApplLocale, getCenter, getComponent, 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

JEConstraints

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

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

JEConstraints

public JEConstraints()
Method Detail

getinsets

public java.awt.Insets getinsets()

start

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

Overrides:
start in class JEObject
See Also:
JE#start

getConstraints

public java.awt.GridBagConstraints getConstraints()

getanchor

public int getanchor()

getgridx

public int getgridx()

getgridy

public int getgridy()

getgridwidth

public int getgridwidth()

getgridheight

public int getgridheight()

getweightx

public double getweightx()

getweighty

public double getweighty()

getfill

public int getfill()

getipadx

public int getipadx()

getipady

public int getipady()