com.arsdigita.cms.ui.util
Class ToggleLinkFormListener

java.lang.Object
  extended bycom.arsdigita.cms.ui.util.ToggleLinkFormListener
All Implemented Interfaces:
EventListener, com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormSubmissionListener

public class ToggleLinkFormListener
extends Object
implements com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormSubmissionListener

This class implements the FormProcessListener and FormSubmissionListener The primary function of this class is to reset the ToggleLink to a particular state after a form is processed or submitted.

Version:
$Revision: #6 $ $Date: 2004/04/07 $
Author:
Jack Chung (flattop@arsdigita.com)

Field Summary
static String versionId
           
 
Constructor Summary
ToggleLinkFormListener(com.arsdigita.bebop.ToggleLink l)
          Default Constructor.
ToggleLinkFormListener(com.arsdigita.bebop.ToggleLink l, boolean isSelected)
          Constructor.
 
Method Summary
 boolean getIsSelected()
          Returns whether the toggle link should be selected after the form is processed.
 void getIsSelected(boolean isSelected)
          Set whether the toggle link should be selected after the form is processed.
 com.arsdigita.bebop.ToggleLink getToggleLink()
          Returns the toggle link
 void process(com.arsdigita.bebop.event.FormSectionEvent e)
           
 void submitted(com.arsdigita.bebop.event.FormSectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ToggleLinkFormListener

public ToggleLinkFormListener(com.arsdigita.bebop.ToggleLink l)
Default Constructor. Toggle link will be deselected when form is processed or submitted

Parameters:
l - The toggle Link

ToggleLinkFormListener

public ToggleLinkFormListener(com.arsdigita.bebop.ToggleLink l,
                              boolean isSelected)
Constructor.

Parameters:
l - The toggle Link
isSelected - Specify true if the toggle link should be selected when form is processed or submited, false otherwise.
Method Detail

getToggleLink

public com.arsdigita.bebop.ToggleLink getToggleLink()
Returns the toggle link


getIsSelected

public boolean getIsSelected()
Returns whether the toggle link should be selected after the form is processed.


getIsSelected

public void getIsSelected(boolean isSelected)
Set whether the toggle link should be selected after the form is processed.

Parameters:
isSelected - Specify true if the toggle link should be selected when form is processed or submitted, false otherwise.

process

public void process(com.arsdigita.bebop.event.FormSectionEvent e)
             throws com.arsdigita.bebop.FormProcessException
Specified by:
process in interface com.arsdigita.bebop.event.FormProcessListener
Throws:
com.arsdigita.bebop.FormProcessException

submitted

public void submitted(com.arsdigita.bebop.event.FormSectionEvent e)
               throws com.arsdigita.bebop.FormProcessException
Specified by:
submitted in interface com.arsdigita.bebop.event.FormSubmissionListener
Throws:
com.arsdigita.bebop.FormProcessException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC