|
||||||||
| 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.JEConstraints
public class JEConstraints
A class building a GridBagConstraints.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with CS_ |
| anchor | CENTER 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. |
| gridx | int 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. |
| gridy | int 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. |
| gridwidth | int 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. |
| gridheight | int 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. |
| weightx | double 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. |
| weighty | double 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. |
| fill | int 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. |
| ipadx | int 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. |
| ipady | int 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 | &bnsp | This 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
| 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 |
|---|
public JEConstraints(java.lang.String s)
s - contains properties and valuesJE#PropertyStringpublic JEConstraints()
| Method Detail |
|---|
public java.awt.Insets getinsets()
public void start()
start in class JEObjectJE#startpublic java.awt.GridBagConstraints getConstraints()
public int getanchor()
public int getgridx()
public int getgridy()
public int getgridwidth()
public int getgridheight()
public double getweightx()
public double getweighty()
public int getfill()
public int getipadx()
public int getipady()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||