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

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

public class SubdialogTriggerModel
extends SubmitModel
implements ActionListener

Author:
amedrano
See Also:
SubdialogTrigger

Field Summary
 
Fields inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.SubmitModel
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
SubdialogTriggerModel(SubdialogTrigger control, Renderer render)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          
 JComponent getNewComponent()
          generate the JComponent that displays this FormControl's information.
 void update()
          Update the JComponent
 
Methods inherited from class org.universAAL.ui.handler.gui.swing.model.FormControl.SubmitModel
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
 

Constructor Detail

SubdialogTriggerModel

public SubdialogTriggerModel(SubdialogTrigger 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.

Overrides:
getNewComponent in class SubmitModel
Returns:
a JToggleButton, whose state is determined by the antecessor Forms.

update

public void update()
Update the JComponent

Overrides:
update in class SubmitModel

actionPerformed

public void actionPerformed(ActionEvent e)

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class SubmitModel


Copyright © 2014 universAAL Consortium. All Rights Reserved.