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

Package class diagram package SubmitModel
java.lang.Object
  extended by org.universAAL.ui.handler.gui.swing.model.Model
      extended by org.universAAL.ui.handler.gui.swing.model.FormControl.SubmitModel
All Implemented Interfaces:
ActionListener, EventListener
Direct Known Subclasses:
ExitButton, SubdialogTriggerModel, SubmitLAF, SubmitLAF, SubmitLAF

public class SubmitModel
extends Model
implements ActionListener

Author:
amedrano
See Also:
Submit

Field Summary
protected  SpecialButtonFactory specialBFactory
           
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.Model
fc, FORM_CONTROL_IN_TABLE, jc, label, needsLabel, needsPostNewLine, needsPreNewLine
 
Constructor Summary
SubmitModel(Submit control, Renderer render)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          
 JComponent getNewComponent()
          generate the JComponent that displays this FormControl's information.
 boolean isValid()
          a Submit is allways valid.
 void update()
          Adds all the needed information to the rendered component (in Model view).
 
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

specialBFactory

protected SpecialButtonFactory specialBFactory
Constructor Detail

SubmitModel

public SubmitModel(Submit control,
                   Renderer render)
Constructor.

Parameters:
control - the FormControl which to model.
Method Detail

getNewComponent

public JComponent getNewComponent()
generate the JComponent that displays this FormControl's information.

Specified by:
getNewComponent in class Model
Returns:
a JButton

update

public void update()
Adds all the needed information to the rendered component (in Model view). In LAF view, it add/updates all LAF components.

Overrides:
update in class Model

isValid

public boolean isValid()
a Submit is allways valid.

Specified by:
isValid in class Model
Returns:
true

actionPerformed

public void actionPerformed(ActionEvent e)

Specified by:
actionPerformed in interface ActionListener


Copyright © 2014 universAAL Consortium. All Rights Reserved.