org.universAAL.ui.handler.gui.swing.model.FormControl
Class SubmitModel
java.lang.Object
org.universAAL.ui.handler.gui.swing.model.Model
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
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 |
specialBFactory
protected SpecialButtonFactory specialBFactory
SubmitModel
public SubmitModel(Submit control,
Renderer render)
- Constructor.
- Parameters:
control
- the FormControl
which to model.
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.