public class VariableChoiceNumKey extends MustComboBox
editBeginValue, index, items, value
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
VariableChoiceNumKey(SessionData sessionData,
KeyValuePairNum[] keyValuePairs)
Constructs an new variable choice with the specified content and offer control.
|
VariableChoiceNumKey(SessionData sessionData,
KeyValuePairNum[] keyValuePairs,
boolean noChoicePossible)
Constructs an new variable choice with the specified content and offer control.
|
VariableChoiceNumKey(SessionData sessionData,
KeyValuePairNum[] keyValuePairs,
java.lang.String nameForNoChoice)
Constructs an new variable choice with the specified content and offer control.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHelpTarget() |
java.lang.String |
getHelpTopic() |
int |
getSelectedItemKey()
Returns the key of the selected item.
|
boolean |
isSpecialChoice()
Returns true if the selected item is not the placeholder for "none" or "any".
|
void |
setHelpContext(java.lang.String helpTopic)
Sets the component's context help.
|
void |
setHelpContext(java.lang.String helpTopic,
java.lang.String helpTarget)
Sets the component's context help.
|
void |
setNameForNoChoice(java.lang.String noChoiceName)
Sets the name for "no choice", e.g.
|
void |
setNoSpecialChoice()
Selects the item to be used to indicate "no special choice"
|
void |
setSelectedItemKey(int key)
Selects the item by its key.
|
addItem, addItemListener, buildRemoteView, destroy, fetchValuesFromRequest, getItemAt, getItemCount, getSelectedItem, isModified, perform, removeAllItems, requestFocusInWindow, resetEditBeginValue, selectAll, setSelectedIndex, setSelectedIndexAsEditBeginValue, setSelectedItem, setValues, updateRemoteView
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEditable, setEnabled, setToolTipText, setVisible
public VariableChoiceNumKey(SessionData sessionData, KeyValuePairNum[] keyValuePairs)
keyValuePairs
- the content as an array of key value pairspublic VariableChoiceNumKey(SessionData sessionData, KeyValuePairNum[] keyValuePairs, boolean noChoicePossible)
keyValuePairs
- the content as an array of key value pairsnoChoicePossible
- if true, an item is offered which represents the "no choice"public VariableChoiceNumKey(SessionData sessionData, KeyValuePairNum[] keyValuePairs, java.lang.String nameForNoChoice)
keyValuePairs
- the content as an array of key value pairsnameForNoChoice
- the name for "no choice"public void setNameForNoChoice(java.lang.String noChoiceName)
noChoiceName
- the name for "no choice"public void setHelpContext(java.lang.String helpTopic)
helpTopic
- the context help's topicpublic void setHelpContext(java.lang.String helpTopic, java.lang.String helpTarget)
helpTopic
- the context help's topichelpTarget
- the context help's targetpublic java.lang.String getHelpTopic()
public java.lang.String getHelpTarget()
public int getSelectedItemKey()
public void setSelectedItemKey(int key)
key
- the key of the item to selectpublic boolean isSpecialChoice()
public void setNoSpecialChoice()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de