Package nl.gx.webmanager.springmvc.panel
Class PanelButtonImpl
- java.lang.Object
-
- nl.gx.webmanager.springmvc.panel.PanelButtonImpl
-
- All Implemented Interfaces:
PanelButton
public class PanelButtonImpl extends 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
Constructors Constructor Description 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, String messageKey)
create a panel button of the given parameters.PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, String messageKey, boolean disabled)
create a panel button of the given parameters.PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, String messageKey, String id)
create a panel button of the given parameters.PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, String messageKey, String id, boolean disabled)
create a panel button of the given parameters.PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, String messageKey, String id, boolean disabled, String action)
Create a panel button of the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.String
getId()
get the id.String
getMessageKey()
get the messageKey.void
setAction(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(String id)
set the id.void
setMessageKey(String messageKey)
set the messageKey.
-
-
-
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
- buttonTypedisabled
- true of false
-
PanelButtonImpl
public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, String messageKey)
create a panel button of the given parameters. id is set to the default value (see setButtonType())- Parameters:
buttonType
- buttonTypemessageKey
- messageKey from the resourcebundle, if null default is used (see setButtonType())
-
PanelButtonImpl
public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, String messageKey, boolean disabled)
create a panel button of the given parameters. id is set to the default value (see setButtonType())- Parameters:
buttonType
- buttonTypemessageKey
- messageKey from the resourcebundle, if null default is used (see setButtonType())disabled
- true of false
-
PanelButtonImpl
public PanelButtonImpl(PanelButton.BUTTONTYPE buttonType, String messageKey, String id)
create a panel button of the given parameters.- Parameters:
buttonType
- buttonTypemessageKey
- 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, String messageKey, String id, boolean disabled)
create a panel button of the given parameters.- Parameters:
buttonType
- buttonTypemessageKey
- 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, String messageKey, String id, boolean disabled, String action)
Create a panel button of the given parameters.- Parameters:
buttonType
- buttonTypemessageKey
- messageKey from the resourcebundle, if null default is used (see setButtonType())id
- if null default is used (see setButtonType())disabled
- true of falseaction
- 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 interfacePanelButton
- Returns:
- buttonType
-
setMessageKey
public void setMessageKey(String messageKey)
Description copied from interface:PanelButton
set the messageKey.- Specified by:
setMessageKey
in interfacePanelButton
- Parameters:
messageKey
- messageKey
-
getMessageKey
public String getMessageKey()
Description copied from interface:PanelButton
get the messageKey.- Specified by:
getMessageKey
in interfacePanelButton
- Returns:
- messageKey
-
setId
public void setId(String id)
Description copied from interface:PanelButton
set the id.- Specified by:
setId
in interfacePanelButton
- Parameters:
id
- id
-
getId
public String getId()
Description copied from interface:PanelButton
get the id.- Specified by:
getId
in interfacePanelButton
- Returns:
- id
-
setDisabled
public void setDisabled(boolean disabled)
Description copied from interface:PanelButton
set the button enabled state.- Specified by:
setDisabled
in interfacePanelButton
- Parameters:
disabled
- true/false
-
getDisabled
public boolean getDisabled()
Description copied from interface:PanelButton
return the button enabled state.- Specified by:
getDisabled
in interfacePanelButton
- Returns:
- disabled
-
getAction
public String getAction()
Description copied from interface:PanelButton
Returns action for the doPanelViewSubmit function in the generated HTML INPUT Tag.- Specified by:
getAction
in interfacePanelButton
- Returns:
- action for the doPanelViewSubmit function in the generated HTML INPUT Tag
-
setAction
public void setAction(String action)
Description copied from interface:PanelButton
Set action for the doPanelViewSubmit function in the generated HTML INPUT Tag.- Specified by:
setAction
in interfacePanelButton
- Parameters:
action
- The action to set
-
-