|
com.im.ijc.core/1 5.9.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.ijc.core.api.views.FormDataBean
public class FormDataBean
FormDataBean serves as a communication bridge between IJC form view and a widget. Form view
is using information provided by this class to e.g. compute the size of the box into which the widget is placed.
| Field Summary | |
|---|---|
static String |
PROP_INTERNAL_BORDER_SPACING_ON
|
static int |
RESIZE_BOTH
|
static int |
RESIZE_HORIZONTAL
|
static int |
RESIZE_NONE
|
static int |
RESIZE_VERTICAL
|
| Constructor Summary | |
|---|---|
FormDataBean()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addSizeChangedCallback(Function<Dimension,Void> callback)
The given callback is called when there is change request pushed. |
Dimension |
getPreferredSize()
|
int |
getResizeDirections()
|
boolean |
isInternalBorderSpacingOn()
Whether there should be spacing between inner Swing component pertaining to (or wrapped by) IJC widget and its titled border. |
void |
pushSizeChangeRequest(Dimension requestedSizeDelta)
Communicates to the form view that the size of the widget should be changed according to the given delta. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
setInternalBorderSpacingOn(boolean internalBorderSpacingOn,
boolean fire)
Set whether there should be spacing between inner Swing component pertaining to (or wrapped by) IJC widget and its titled border. |
void |
setPreferredSize(Dimension preferredSize)
|
void |
setResizeDirections(int resizeDirections)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_INTERNAL_BORDER_SPACING_ON
public static final int RESIZE_NONE
public static final int RESIZE_HORIZONTAL
public static final int RESIZE_VERTICAL
public static final int RESIZE_BOTH
| Constructor Detail |
|---|
public FormDataBean()
| Method Detail |
|---|
public Dimension getPreferredSize()
public void setPreferredSize(Dimension preferredSize)
public int getResizeDirections()
public void setResizeDirections(int resizeDirections)
public boolean isInternalBorderSpacingOn()
setInternalBorderSpacingOn(boolean, boolean)
public void setInternalBorderSpacingOn(boolean internalBorderSpacingOn,
boolean fire)
Widget is supposed to keep its original space thus providing more space for the inner component (like textfield).
internalBorderSpacingOn - should be there spacing between Swing widget and the titled border?fire - whether to notify registered listeners about this changepublic void pushSizeChangeRequest(Dimension requestedSizeDelta)
delta.
requestedSizeDelta - the wanted changepublic void addSizeChangedCallback(Function<Dimension,Void> callback)
change request pushed.
public final void addPropertyChangeListener(PropertyChangeListener l)
public final void removePropertyChangeListener(PropertyChangeListener l)
|
com.im.ijc.core/1 5.9.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||