Class FormDataBean


  • public class FormDataBean
    extends java.lang.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.
    • Constructor Detail

      • FormDataBean

        public FormDataBean()
    • Method Detail

      • getPreferredSize

        public java.awt.Dimension getPreferredSize()
      • setPreferredSize

        public void setPreferredSize​(java.awt.Dimension preferredSize)
      • getResizeDirections

        public int getResizeDirections()
      • setResizeDirections

        public void setResizeDirections​(int resizeDirections)
      • getBounds

        public java.awt.Rectangle getBounds()
        Returns org.netbeans.api.visual.widget.Widget.getBounds().
        Returns:
        Rectangle bounds
      • 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​(java.awt.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​(com.im.commons.Callback<java.awt.Dimension> callback)
        The given callback is called when there is change request pushed.
      • addSizeQuery

        public void addSizeQuery​(java.util.concurrent.Callable<java.awt.Rectangle> callable)
      • addPropertyChangeListener

        public final void addPropertyChangeListener​(java.beans.PropertyChangeListener l)
      • removePropertyChangeListener

        public final void removePropertyChangeListener​(java.beans.PropertyChangeListener l)