Package overit.geocall.ui
Class Tooltip.Button
java.lang.Object
overit.geocall.ui.Tooltip.Button
- All Implemented Interfaces:
Serializable
- Enclosing class:
Tooltip
The class implements a clickable button that can be added to the tooltip
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIndicates that the button is the default one.Sets the parameters for the buttonSets if the value returned by the prompt can be an empty string ""Sets the target for the event of the button
-
Field Details
-
_label
-
_icon
-
_event
-
_id
-
_param
-
_msg
-
_prompt
-
promptEmpty
protected boolean promptEmpty -
_default
protected boolean _default
-
-
Constructor Details
-
Button
Creates a button- Parameters:
label- The label associated to the buttonicon- The icon associated to the buttonevent- The event triggered when the user clicks on the button
-
-
Method Details
-
setTarget
Sets the target for the event of the button- Parameters:
target- The desired id of the object that must be used as target for the event- Returns:
- The button with the given target
-
setParams
Sets the parameters for the button- Parameters:
param- The parameters passed to the event associated to the buttonmsg- The string that appears as a message whe the user clicks the buttonprompt- The string that appears as a prompt when the user clicks the button- Returns:
- The button with the given parameters
-
setDefault
Indicates that the button is the default one. The default button has the focus set when the tooltip is showed, so the user can trigger the event associated to the button by just press the enter key- Returns:
- The button with the default focus attribute
-
setPromptEmpty
Sets if the value returned by the prompt can be an empty string ""- Parameters:
s-trueif you want to allow to return an empty value by the prompt,falseotherwise.- Returns:
- The button with the given parameters
-