gov.virginia.dcjs.gui
Class ApplicationLayoutAdapter

java.lang.Object
  extended bygov.virginia.dcjs.gui.ApplicationLayoutAdapter
All Implemented Interfaces:
ApplicationLayout
Direct Known Subclasses:
AcademyLayout, AgencyLayout, CertificationLayout, CompletedLayout, EmploymentLayout, InstructorLayout, InstructorsLayout, NotesLayout, PersonLayout, PlannedLayout, RosterLayout, RunningLayout, TrainingLayout

public class ApplicationLayoutAdapter
extends java.lang.Object
implements ApplicationLayout

Adapter class for ApplicationLayout implementations. * Subclasses need only implement those ApplicationLayout * methods that pertain to the GUI being layed out.


Field Summary
 
Fields inherited from interface gov.virginia.dcjs.gui.ApplicationLayout
DATAENTRY, GRID, READONLY, RESIZABLE, ROW
 
Constructor Summary
ApplicationLayoutAdapter()
           
 
Method Summary
 java.lang.String[] getButtonCaptions()
          Obtain the button captions for the main button panel.
 java.lang.String[] getButtonCaptions(int dialog)
          Obtain the button captions for the specified dialog button panel.
 int getButtonsTall()
          Obtain the quantity of buttons to appear in a single column of * the main button panel.
 int getButtonsTall(int dialog)
          Obtain the quantity of buttons to appear in a single column of * the specified dialog button panel.
 java.lang.String getButtonTitle()
          Obtain the title for the main button panel.
 java.lang.String getButtonTitle(int dialog)
          Obtain the title for the specified dialog button panel.
 java.lang.String[] getGridCaptions()
          Obtain the grid captions for the main panel.
 java.lang.String[] getGridCaptions(int dialog)
          Obtain the grid captions for the specified dialog.
 java.lang.String[] getGridColumns()
          Obtain fields to display by Relation field * names within the main grid.
 java.lang.String[] getGridColumns(int dialog)
          Obtain fields to display by Relation field * names within the dialog's grid.
 int[] getGridColumnWidths()
          Obtain column widths for each column within the main grid.
 int[] getGridColumnWidths(int dialog)
          Obtain column widths for each column within the dialog grid.
 GridRowMetaData getGridRowMetaData()
          Obtain the meta data for each field in a complete record to be * displayed in the main panel.
 GridRowMetaData getGridRowMetaData(int dialog)
          Obtain the meta data for each field of a data entry row to be * displayed in the specified dialog box.
 java.lang.String getGridTitle()
          Obtain the title for the main grid panel.
 java.lang.String getGridTitle(int dialog)
          Obtain the title for the specified dialog grid panel.
 int getKeyIndex()
          Obtain the index of the main grid data column containing the data key.
 int getKeyIndex(int dialog)
          Obtain the index of the dialog grid data column containing the data key.
 java.lang.String getRowTitle()
          Obtain the title for the main panel's grid row.
 java.lang.String getRowTitle(int dialog)
          Obtain the title for the specified dialog's grid row.
 int getSortIndex()
          Obtain the index of the main grid data column to sort on.
 int getSortIndex(int dialog)
          Obtain the index of the specified dialog grid data column to sort on.
 java.lang.String getTitle()
          Obtain the title for the main panel.
 java.lang.String getTitle(int dialog)
          Obtain the title for the specified dialog panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationLayoutAdapter

public ApplicationLayoutAdapter()
Method Detail

getTitle

public java.lang.String getTitle()
Obtain the title for the main panel. * @return Title for the main panel.

Specified by:
getTitle in interface ApplicationLayout

getTitle

public java.lang.String getTitle(int dialog)
Obtain the title for the specified dialog panel. * @param dialog Dialog specific identifier. One of this class' constants. * @return Title for the specified dialog panel.

Specified by:
getTitle in interface ApplicationLayout

getGridTitle

public java.lang.String getGridTitle()
Obtain the title for the main grid panel. * @return Title for the main grid panel.

Specified by:
getGridTitle in interface ApplicationLayout

getGridTitle

public java.lang.String getGridTitle(int dialog)
Obtain the title for the specified dialog grid panel. * @param dialog Dialog specific identifier. One of this class' constants. * @return Title for the dialog grid panel.

Specified by:
getGridTitle in interface ApplicationLayout

getRowTitle

public java.lang.String getRowTitle()
Obtain the title for the main panel's grid row. * @return Title for the grid row panel.

Specified by:
getRowTitle in interface ApplicationLayout

getRowTitle

public java.lang.String getRowTitle(int dialog)
Obtain the title for the specified dialog's grid row. * @param dialog Dialog specific identifier. One of this class' constants. * @return Title for the dialog grid row panel.

Specified by:
getRowTitle in interface ApplicationLayout

getButtonTitle

public java.lang.String getButtonTitle()
Obtain the title for the main button panel. * @return Title for the main button panel.

Specified by:
getButtonTitle in interface ApplicationLayout

getButtonTitle

public java.lang.String getButtonTitle(int dialog)
Obtain the title for the specified dialog button panel. * @param dialog Dialog specific identifier. One of this class' constants. * @return Title for the dialog button panel.

Specified by:
getButtonTitle in interface ApplicationLayout

getGridCaptions

public java.lang.String[] getGridCaptions()
Obtain the grid captions for the main panel. * @return Grid captions for the main panel.

Specified by:
getGridCaptions in interface ApplicationLayout

getGridCaptions

public java.lang.String[] getGridCaptions(int dialog)
Obtain the grid captions for the specified dialog. * @param dialog Dialog specific identifier. One of this class' constants. * @return Grid captions for the dialog.

Specified by:
getGridCaptions in interface ApplicationLayout

getButtonCaptions

public java.lang.String[] getButtonCaptions()
Obtain the button captions for the main button panel. * @return Button captions for the main button panel.

Specified by:
getButtonCaptions in interface ApplicationLayout

getButtonCaptions

public java.lang.String[] getButtonCaptions(int dialog)
Obtain the button captions for the specified dialog button panel. * @param dialog Dialog specific identifier. One of this class' constants. * @return Button captions for the dialog button panel.

Specified by:
getButtonCaptions in interface ApplicationLayout

getButtonsTall

public int getButtonsTall()
Obtain the quantity of buttons to appear in a single column of * the main button panel. * @return Quantity of buttons to appear in a single column of * buttons on the main button panel.

Specified by:
getButtonsTall in interface ApplicationLayout

getButtonsTall

public int getButtonsTall(int dialog)
Obtain the quantity of buttons to appear in a single column of * the specified dialog button panel. * @param dialog Dialog specific identifier. One of this class' constants. * @return Quantity of buttons to appear in a single column of * buttons on the dialog button panel.

Specified by:
getButtonsTall in interface ApplicationLayout

getGridColumns

public java.lang.String[] getGridColumns()
Obtain fields to display by Relation field * names within the main grid. * @return Field names to be displayed in main grid.

Specified by:
getGridColumns in interface ApplicationLayout

getGridColumns

public java.lang.String[] getGridColumns(int dialog)
Obtain fields to display by Relation field * names within the dialog's grid. * @param dialog Dialog specific identifier. One of this class' constants. * @return Field names to be displayed in dialog grid.

Specified by:
getGridColumns in interface ApplicationLayout

getGridColumnWidths

public int[] getGridColumnWidths()
Obtain column widths for each column within the main grid. * @return Column widths for each column in the main grid.

Specified by:
getGridColumnWidths in interface ApplicationLayout

getGridColumnWidths

public int[] getGridColumnWidths(int dialog)
Obtain column widths for each column within the dialog grid. * @param dialog Dialog specific identifier. One of this class' constants. * @return Column widths for each column in the dialog grid.

Specified by:
getGridColumnWidths in interface ApplicationLayout

getGridRowMetaData

public GridRowMetaData getGridRowMetaData()
Obtain the meta data for each field in a complete record to be * displayed in the main panel. * @return Meta data object controlling record fields display.

Specified by:
getGridRowMetaData in interface ApplicationLayout

getGridRowMetaData

public GridRowMetaData getGridRowMetaData(int dialog)
Obtain the meta data for each field of a data entry row to be * displayed in the specified dialog box. * @param dialog Dialog specific identifier. One of this class' constants. * @return Meta data object controlling record fields display within * a dialog box.

Specified by:
getGridRowMetaData in interface ApplicationLayout

getSortIndex

public int getSortIndex()
Obtain the index of the main grid data column to sort on. * @return Field column index to sort by.

Specified by:
getSortIndex in interface ApplicationLayout

getSortIndex

public int getSortIndex(int dialog)
Obtain the index of the specified dialog grid data column to sort on. * @param dialog Dialog specific identifier. One of this class' constants. * @return Field column index to sort by.

Specified by:
getSortIndex in interface ApplicationLayout

getKeyIndex

public int getKeyIndex()
Obtain the index of the main grid data column containing the data key. * @return Field column index containing the row key.

Specified by:
getKeyIndex in interface ApplicationLayout

getKeyIndex

public int getKeyIndex(int dialog)
Obtain the index of the dialog grid data column containing the data key. * @param dialog Dialog specific identifier. One of this class' constants. * @return Field column index containing the row key.

Specified by:
getKeyIndex in interface ApplicationLayout