org.universAAL.ui.handler.gui.swing.classic
Class FormLAF

Package class diagram package FormLAF
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.FormModel
      extended by org.universAAL.ui.handler.gui.swing.classic.FormLAF

public class FormLAF
extends FormModel

The Look and Feel for Forms

Author:
amedrano, pabril
See Also:
FormModel

Field Summary
static int barwidth
           
protected static boolean constant
           
static int H_CENTER
           
static int H_LEFT
           
static int H_RIGHT
           
static int hgap
           
protected static int hGroupHalign
           
static boolean legacyHint
           
protected static boolean vertical
           
static int vgap
           
protected static int vGroupHalign
           
protected static int vGroupValign
           
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.FormModel
form, IO_NAME, ioGroupModel, SUB_NAME, submitsGroupModel, SYS_NAME, sysGroupModel
 
Constructor Summary
FormLAF(Form f, Renderer render)
          Constructor.
 
Method Summary
protected  JPanel getHeader(String title)
          generate the header panel.
protected  JScrollPane getIOPanelScroll()
          get the io panel wrapped in a scroll pane.
protected  JScrollPane getSubmitPanelScroll(int depth, boolean vertical)
          get the submit panel wrapped in a scroll pane.
protected  JScrollPane getSystemPanelScroll()
          get the system panel wrapped in a scroll pane.
 void showForm()
          render the frame for the Form.
 void terminateDialog()
          Terminate the dialog, closing the frame, and any required procedure.
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormModel
finalizeForm, findModel, getForm, getIOPanel, getIOPanel, getRenderer, getRequest, getSubdialogLevel, getSubmitPanel, getSubmitPanel, getSystemPanel, getTitlePath, isAntecessor, setRequest, updateMissingInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

legacyHint

public static boolean legacyHint

vertical

protected static boolean vertical

H_CENTER

public static final int H_CENTER
See Also:
Constant Field Values

H_LEFT

public static final int H_LEFT
See Also:
Constant Field Values

H_RIGHT

public static final int H_RIGHT
See Also:
Constant Field Values

vGroupHalign

protected static int vGroupHalign

vGroupValign

protected static int vGroupValign

hGroupHalign

protected static int hGroupHalign

constant

protected static boolean constant

hgap

public static final int hgap
See Also:
Constant Field Values

vgap

public static final int vgap
See Also:
Constant Field Values

barwidth

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

FormLAF

public FormLAF(Form f,
               Renderer render)
Constructor.

Parameters:
f - Form which to model.
Method Detail

getIOPanelScroll

protected JScrollPane getIOPanelScroll()
get the io panel wrapped in a scroll pane.

Returns:
the FormModel.getIOPanel() wrapped in a JScrollPane .

getSubmitPanelScroll

protected JScrollPane getSubmitPanelScroll(int depth,
                                           boolean vertical)
get the submit panel wrapped in a scroll pane.

Returns:
the FormModel.getSubmitPanel() wrapped in a JScrollPane.

getSystemPanelScroll

protected JScrollPane getSystemPanelScroll()
get the system panel wrapped in a scroll pane.

Returns:
the FormModel.getSystemPanel() wrapped in a JScrollPane.

getHeader

protected JPanel getHeader(String title)
generate the header panel.

Returns:
a pannel with universAAL icon in it.

showForm

public void showForm()
render the frame for the Form.

Specified by:
showForm in class FormModel

terminateDialog

public void terminateDialog()
Description copied from class: FormModel
Terminate the dialog, closing the frame, and any required procedure.

Specified by:
terminateDialog in class FormModel


Copyright © 2014 universAAL Consortium. All Rights Reserved.