edu.internet2.middleware.grouper.grouperUi.beans.json
Class GuiHideShow

java.lang.Object
  extended by edu.internet2.middleware.grouper.grouperUi.beans.json.GuiHideShow
All Implemented Interfaces:
Serializable

public class GuiHideShow
extends Object
implements Serializable

 hide shows, the name, and if showing, text, etc.  Anything with class:
 shows_hideShowName, e.g. shows_simpleMembershipAdvanced
 Anything with class: hides_hideShowName, e.g. hides_simpleMembershipAdvanced
 will show if false.
 The buttons should have the class: buttons_simpleMembershipUpdateGroupDetails
 
state on screen of hide show

See Also:
Serialized Form

Constructor Summary
GuiHideShow()
          default constructor
GuiHideShow(boolean showing1, String textWhenShowing1, String testWhenHidden1)
           hide shows, the name, and if showing, text, etc.
 
Method Summary
 String getTextWhenHidden()
          text when hidden
 String getTextWhenShowing()
          text when showing
static void init(String hideShowName, boolean showing, String textWhenShowing, String textWhenHidden, boolean storeInSession)
          init a hide show if not in session (and using session)
 boolean isShowing()
          if showing
static GuiHideShow retrieveHideShow(String hideShowName, boolean exceptionIfNotFound)
          find a hide show in response or app state
 void setShowing(boolean showing1)
          if showing
 void setTextWhenHidden(String testWhenHidden1)
          text when hidden
 void setTextWhenShowing(String textWhenShowing1)
          text when showing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiHideShow

public GuiHideShow()
default constructor


GuiHideShow

public GuiHideShow(boolean showing1,
                   String textWhenShowing1,
                   String testWhenHidden1)
 hide shows, the name, and if showing, text, etc.  Anything with class:
 shows_hideShowName, e.g. shows_simpleMembershipAdvanced
 Anything with class: hides_hideShowName, e.g. hides_simpleMembershipAdvanced
 will show if false.
 The buttons should have the class: buttons_simpleMembershipUpdateGroupDetails
 
construct with fields

Parameters:
showing1 -
textWhenShowing1 -
testWhenHidden1 -
Method Detail

init

public static void init(String hideShowName,
                        boolean showing,
                        String textWhenShowing,
                        String textWhenHidden,
                        boolean storeInSession)
init a hide show if not in session (and using session)

Parameters:
hideShowName -
showing -
textWhenShowing -
textWhenHidden -
storeInSession - if this should persist in session

retrieveHideShow

public static GuiHideShow retrieveHideShow(String hideShowName,
                                           boolean exceptionIfNotFound)
find a hide show in response or app state

Parameters:
hideShowName -
exceptionIfNotFound -
Returns:
the hide show

isShowing

public boolean isShowing()
if showing

Returns:
the showing

setShowing

public void setShowing(boolean showing1)
if showing

Parameters:
showing1 - the showing to set

getTextWhenShowing

public String getTextWhenShowing()
text when showing

Returns:
the textWhenShowing

setTextWhenShowing

public void setTextWhenShowing(String textWhenShowing1)
text when showing

Parameters:
textWhenShowing1 - the textWhenShowing to set

getTextWhenHidden

public String getTextWhenHidden()
text when hidden

Returns:
the testWhenHidden

setTextWhenHidden

public void setTextWhenHidden(String testWhenHidden1)
text when hidden

Parameters:
testWhenHidden1 - the testWhenHidden to set