org.universAAL.ui.handler.gui.swing.model.FormControl
Class RepeatModelTable

Package class diagram package RepeatModelTable
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.Model
      extended by org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
          extended by org.universAAL.ui.handler.gui.swing.model.FormControl.RepeatModel
              extended by org.universAAL.ui.handler.gui.swing.model.FormControl.RepeatModelTable
All Implemented Interfaces:
EventListener, ListSelectionListener
Direct Known Subclasses:
RepeatModelTableLAF, RepeatModelTableLAF, RepeatModelTableLAF

public abstract class RepeatModelTable
extends RepeatModel
implements ListSelectionListener

Helper Class just to render RepeatTables.

Author:
amedrano

Nested Class Summary
 class RepeatModelTable.AddTableButton
          Class representing the Add button for Tables.
 class RepeatModelTable.DeleteTableButton
          Class representing the Delete button for Tables.
 class RepeatModelTable.DownTableButton
          Class representing the Down button for Tables.
 class RepeatModelTable.UpTableButton
          Class representing the Up button for Tables.
 
Field Summary
protected  JTable tableComponent
          The table component
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.RepeatModel
grid, table
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
children
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
 
Constructor Summary
RepeatModelTable(Repeat control, Renderer render)
          Constructor
 
Method Summary
protected  JPanel getButtonPanel()
           
protected  JTable getJTable()
           
 void update()
          Overriding update from GroupModel
 void valueChanged(ListSelectionEvent e)
           
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.RepeatModel
containsSubmits, getChildrenType, isATable
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.GroupModel
addComponentTo, containsOnlySubGroups, findChildModeFor, getComponentFrom, getNewComponent, isTheIOGroup, isTheMainGroup, isTheSubmitGroup, isValid
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.Model
correspondsTo, getComponent, getLabelModel, getPositionInGroup, getRenderer, isInDialog, isInIOGroup, isInMainMenu, isInMessage, isInStandardGroup, isInSubDialog, isInSubmitGroup, isInTable, needsLabel, needsPostNewLine, needsPreNewLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableComponent

protected JTable tableComponent
The table component

Constructor Detail

RepeatModelTable

public RepeatModelTable(Repeat control,
                        Renderer render)
Constructor

Parameters:
control -
Method Detail

update

public void update()
Overriding update from GroupModel

Overrides:
update in class RepeatModel

getJTable

protected JTable getJTable()

getButtonPanel

protected JPanel getButtonPanel()

valueChanged

public void valueChanged(ListSelectionEvent e)
Specified by:
valueChanged in interface ListSelectionListener


Copyright © 2014 universAAL Consortium. All Rights Reserved.