com.im.ijc.core/1 5.9.4

com.im.ijc.core.api.views
Class FormDataBean

java.lang.Object
  extended by com.im.ijc.core.api.views.FormDataBean

public class FormDataBean
extends Object

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

PROP_INTERNAL_BORDER_SPACING_ON

public static final String PROP_INTERNAL_BORDER_SPACING_ON
See Also:
Constant Field Values

RESIZE_NONE

public static final int RESIZE_NONE
See Also:
Constant Field Values

RESIZE_HORIZONTAL

public static final int RESIZE_HORIZONTAL
See Also:
Constant Field Values

RESIZE_VERTICAL

public static final int RESIZE_VERTICAL
See Also:
Constant Field Values

RESIZE_BOTH

public static final int RESIZE_BOTH
See Also:
Constant Field Values
Constructor Detail

FormDataBean

public FormDataBean()
Method Detail

getPreferredSize

public Dimension getPreferredSize()

setPreferredSize

public void setPreferredSize(Dimension preferredSize)

getResizeDirections

public int getResizeDirections()

setResizeDirections

public void setResizeDirections(int resizeDirections)

isInternalBorderSpacingOn

public boolean isInternalBorderSpacingOn()
Whether there should be spacing between inner Swing component pertaining to (or wrapped by) IJC widget and its titled border. Thus the property is applicable only to titled border.

Returns:
should be there spacing between Swing widget and the titled border?
See Also:
setInternalBorderSpacingOn(boolean, boolean)

setInternalBorderSpacingOn

public 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. Thus the property is applicable only to titled border.

Widget is supposed to keep its original space thus providing more space for the inner component (like textfield).

Parameters:
internalBorderSpacingOn - should be there spacing between Swing widget and the titled border?
fire - whether to notify registered listeners about this change

pushSizeChangeRequest

public void pushSizeChangeRequest(Dimension requestedSizeDelta)
Communicates to the form view that the size of the widget should be changed according to the given delta.

Parameters:
requestedSizeDelta - the wanted change

addSizeChangedCallback

public void addSizeChangedCallback(Function<Dimension,Void> callback)
The given callback is called when there is change request pushed.


addPropertyChangeListener

public final void addPropertyChangeListener(PropertyChangeListener l)

removePropertyChangeListener

public final void removePropertyChangeListener(PropertyChangeListener l)

com.im.ijc.core/1 5.9.4