| |
|
| javax.swing.JPanel com.jeta.forms.gui.form.GridComponent com.jeta.forms.gui.form.FormComponent com.jeta.swingbuilder.gui.editor.DesignFormComponent
DesignFormComponent | public DesignFormComponent()(Code) | | Creates a DesignFormComponent instance.
|
DesignFormComponent | public DesignFormComponent(String id, JETABean jbean, GridView parentView, boolean embedded) throws FormException(Code) | | Creates a DesignFormComponent instance with the specified
id, child bean, and parent view.
Parameters: id - the unique id for this form. Parameters: jbean - the underlying GridView Parameters: parentView - the parent for this form. Parameters: embedded - flag that indicates if this form is embedded |
getButtonPanel | public JPanel getButtonPanel()(Code) | | The panel at the top of this component that contains the expand/hide and
edit buttons for this form. These buttons are only visible during design
mode.
the panel that contains the control buttons for the form. |
getChildOverlay | public GridOverlay getChildOverlay()(Code) | | Returns the component that renders the grid lines for the GridView
associated with this form.
the GridOverlay component associated with the GridView that iscontained within this component. |
getEditButton | public AbstractButton getEditButton()(Code) | | Returns the control button used to open a nested form in the editor. This
button is only visible in design mode.
the button used to open a nested form in the editor |
getExpandButton | public AbstractButton getExpandButton()(Code) | | Returns the control button used to expand/hide a nested form in the
editor. This button is only visible in design mode.
the button used to expand/hide a nested form |
getGridButton | public AbstractButton getGridButton()(Code) | | Returns the control button used to show/hide the grid lines of a form in
the editor. This button is only visible in design mode.
the button used to show/hide the grid lines |
gridChanged | public void gridChanged(GridViewEvent evt)(Code) | | GridViewListener implementation. This method is called when events are
fired from the child GridView contained by this FormComponent. All events
are forwarded up the listener chain.
Parameters: evt - the event fired by the GridView contained by this form. |
isGridViewVisible | public boolean isGridViewVisible()(Code) | | Returns the flag that indicates if the grid view associated with this
form is visible. This is different than showing the grid lines. This call
determines if the underlying components in the view in addition to the
grid lines are visible.
|
postSetState | protected void postSetState(ComponentMemento cm)(Code) | | Performs any final initialization of this form component after it's state
has been restored. The main operation is to add empty components where
needed. When in design mode, every cell in the grid has a GridComponent.
The reason is because we need to enforce a minimum size for the cell when
the user sets the row/col size to preferred. If not, the cell size would
be zero if nothing were there. However, in run mode, we don't want to
create an empty component for every single cell. For example, a 20x20
grid would require 400 components. To prevent this, we only add 1 empty
component per row and column. This allows the runtime form to look
approximately like the design time forms with rows/cols that have no
components. We use the grid_cache to keep track of which columns and rows
have had empty components added.
|
setBean | protected void setBean(JETABean jbean)(Code) | | Override GridComponent implementation so we can add the child to this
container for the design view.
|
setControlButtonsVisible | public void setControlButtonsVisible(boolean bvis)(Code) | | Shows/hides the control buttons at the top of this component
|
setGridViewVisible | public void setGridViewVisible(boolean bvis)(Code) | | Shows or hides the grid view associated with this form. This is different
than showing the grid lines. This call also shows/hides the underlying
components in the view in addition to the grid lines.
|
|
|
|