public class TabButtonGroup extends MustInputField
Modifier and Type | Field and Description |
---|---|
static int |
defaultTechnology |
static int |
TECHNOLOGY_JAVA_SCRIPT_SUBMIT |
static int |
TECHNOLOGY_SUBMIT_BUTTONS |
comment, focus, name, placeholder, toolTipText
Constructor and Description |
---|
TabButtonGroup(int nbrOfButtons)
Constructs a new group of tab buttons.
|
TabButtonGroup(int nbrOfButtons,
int technology)
Construct a new group of tab buttons.
|
Modifier and Type | Method and Description |
---|---|
void |
addButton(java.lang.String tabLabel)
Adds a button with the specified label to the group.
|
void |
addButton(java.lang.String tabLabel,
java.lang.String toolTipText)
Adds a button with the specified label to the group.
|
void |
addButton(TabImage tabImage)
Adds a button with the specified label to the group.
|
void |
addButton(TabImage tabImage,
java.lang.String toolTipText)
Adds a button with the specified label to the group.
|
void |
destroy()
Destroys the markupable.
|
void |
fetchYourValueFromRequest(GeneralizedRequest request)
Causes the component to read user input by calling request.getParameter and
update the internal mirrored value.
|
int |
getActiveButtonIndex()
Returns the index of the currently active button.
|
java.lang.String |
getCreationTag()
Returns the tag sequence that's needed to show this object in the user
interface.
|
boolean |
hasBeenUsed()
Returns true if any of the buttons has been pressed in this dialog step.
|
static void |
setDefaultTechnology(int defaultTechnology)
Sets the default technology to layout the tab buttons.
|
void |
setFormName(java.lang.String formName)
Sets the name of the form to be used to execute JavaScript.
|
getName, setComment, setFocus, setPlaceHolder, setToolTipText, toString
public static final int TECHNOLOGY_SUBMIT_BUTTONS
public static final int TECHNOLOGY_JAVA_SCRIPT_SUBMIT
public static int defaultTechnology
public TabButtonGroup(int nbrOfButtons)
nbrOfButtons
- the number of buttons in the grouppublic TabButtonGroup(int nbrOfButtons, int technology)
nbrOfButtons
- the number of buttons in the grouppublic static void setDefaultTechnology(int defaultTechnology)
defaultTechnology
- the default technology to setTECHNOLOGY_SUBMIT_BUTTONS
,
TECHNOLOGY_JAVA_SCRIPT_SUBMIT
,
#TECHNOLOGY_IMAGE_AND_JAVA_SCRIPT_SUBMIT
public void setFormName(java.lang.String formName)
formName
- The formName to setpublic void addButton(java.lang.String tabLabel)
tabLabel
- the label to be used for the new buttonpublic void addButton(java.lang.String tabLabel, java.lang.String toolTipText)
tabLabel
- the label to be used for the new buttontoolTipText
- the tool tip text to showpublic void addButton(TabImage tabImage)
tabImageActive
- the image to be used for active tabtabImageInactive
- the image to be used for inactive tabpublic void addButton(TabImage tabImage, java.lang.String toolTipText)
tabLabel
- the label to be used for the new buttontoolTipText
- the tool tip text to showpublic java.lang.String getCreationTag()
Markupable
Markupable.getCreationTag()
public void fetchYourValueFromRequest(GeneralizedRequest request)
ValueFetcher
fetchYourValueFromRequest
in interface ValueFetcher
fetchYourValueFromRequest
in class MustInputField
request
- the current requestde.must.markup.Markupable#fetchYourValueFromRequest(GeneralizedRequest)
public boolean hasBeenUsed()
public int getActiveButtonIndex()
public void destroy()
Markupable
destroy
in interface Markupable
destroy
in class MustInputField
Markupable.destroy()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de