nl.gx.webmanager.springmvc.panel
Class PanelButtonImpl

java.lang.Object
  extended by nl.gx.webmanager.springmvc.panel.PanelButtonImpl
All Implemented Interfaces:
PanelButton

public class PanelButtonImpl
extends java.lang.Object
implements PanelButton

button definitions for panels.

Author:
johntd

Nested Class Summary
 
Nested classes/interfaces inherited from interface nl.gx.webmanager.springmvc.PanelButton
PanelButton.BUTTONTYPE
 
Constructor Summary
PanelButtonImpl(PanelButton.BUTTONTYPE buttonType)
          create a enabled panel button of the given type.
PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, boolean disabled)
          create a panel button of the given parameters.
PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, java.lang.String messageKey)
          create a panel button of the given parameters.
PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, java.lang.String messageKey, boolean disabled)
          create a panel button of the given parameters.
PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, java.lang.String messageKey, java.lang.String id)
          create a panel button of the given parameters.
PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, java.lang.String messageKey, java.lang.String id, boolean disabled)
          create a panel button of the given parameters.
PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, java.lang.String messageKey, java.lang.String id, boolean disabled, java.lang.String action)
          Create a panel button of the given parameters.
 
Method Summary
 java.lang.String getAction()
          Returns action for the doPanelViewSubmit function in the generated HTML INPUT Tag.
 PanelButton.BUTTONTYPE getButtonType()
          Get the buttonType.
 boolean getDisabled()
          return the button enabled state.
 java.lang.String getId()
          get the id.
 java.lang.String getMessageKey()
          get the messageKey.
 void setAction(java.lang.String action)
          Set action for the doPanelViewSubmit function in the generated HTML INPUT Tag.
 void setDisabled(boolean disabled)
          set the button enabled state.
 void setId(java.lang.String id)
          set the id.
 void setMessageKey(java.lang.String messageKey)
          set the messageKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelButtonImpl

public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType)
create a enabled panel button of the given type. messageKey and id are set to the default values (see setButtonType())

Parameters:
buttonType - buttonType

PanelButtonImpl

public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType,
                       boolean disabled)
create a panel button of the given parameters. messageKey and id are set to the default values (see setButtonType())

Parameters:
buttonType - buttonType
disabled - true of false

PanelButtonImpl

public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType,
                       java.lang.String messageKey)
create a panel button of the given parameters. id is set to the default value (see setButtonType())

Parameters:
buttonType - buttonType
messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())

PanelButtonImpl

public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType,
                       java.lang.String messageKey,
                       boolean disabled)
create a panel button of the given parameters. id is set to the default value (see setButtonType())

Parameters:
buttonType - buttonType
messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
disabled - true of false

PanelButtonImpl

public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType,
                       java.lang.String messageKey,
                       java.lang.String id)
create a panel button of the given parameters.

Parameters:
buttonType - buttonType
messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
id - if null default is used (see setButtonType())

PanelButtonImpl

public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType,
                       java.lang.String messageKey,
                       java.lang.String id,
                       boolean disabled)
create a panel button of the given parameters.

Parameters:
buttonType - buttonType
messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
id - if null default is used (see setButtonType())
disabled - true of false

PanelButtonImpl

public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType,
                       java.lang.String messageKey,
                       java.lang.String id,
                       boolean disabled,
                       java.lang.String action)
Create a panel button of the given parameters.

Parameters:
buttonType - buttonType
messageKey - messageKey from the resourcebundle, if null default is used (see setButtonType())
id - if null default is used (see setButtonType())
disabled - true of false
action - Action for the doPanelViewSubmit function in the generated HTML INPUT Tag
Method Detail

getButtonType

public PanelButton.BUTTONTYPE getButtonType()
Description copied from interface: PanelButton
Get the buttonType.

Specified by:
getButtonType in interface PanelButton
Returns:
buttonType

setMessageKey

public void setMessageKey(java.lang.String messageKey)
Description copied from interface: PanelButton
set the messageKey.

Specified by:
setMessageKey in interface PanelButton
Parameters:
messageKey - messageKey

getMessageKey

public java.lang.String getMessageKey()
Description copied from interface: PanelButton
get the messageKey.

Specified by:
getMessageKey in interface PanelButton
Returns:
messageKey

setId

public void setId(java.lang.String id)
Description copied from interface: PanelButton
set the id.

Specified by:
setId in interface PanelButton
Parameters:
id - id

getId

public java.lang.String getId()
Description copied from interface: PanelButton
get the id.

Specified by:
getId in interface PanelButton
Returns:
id

setDisabled

public void setDisabled(boolean disabled)
Description copied from interface: PanelButton
set the button enabled state.

Specified by:
setDisabled in interface PanelButton
Parameters:
disabled - true/false

getDisabled

public boolean getDisabled()
Description copied from interface: PanelButton
return the button enabled state.

Specified by:
getDisabled in interface PanelButton
Returns:
disabled

getAction

public java.lang.String getAction()
Description copied from interface: PanelButton
Returns action for the doPanelViewSubmit function in the generated HTML INPUT Tag.

Specified by:
getAction in interface PanelButton
Returns:
action for the doPanelViewSubmit function in the generated HTML INPUT Tag

setAction

public void setAction(java.lang.String action)
Description copied from interface: PanelButton
Set action for the doPanelViewSubmit function in the generated HTML INPUT Tag.

Specified by:
setAction in interface PanelButton
Parameters:
action - The action to set


Copyright © 2007-2011 GX Software BV. All Rights Reserved.