Interface VariableOwner
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
LegacyComponent
- All Known Implementing Classes:
AbstractSelect
,AbstractTextField
,Calendar
,ColorPickerPopup
,ComboBox
,CustomLayout
,DateField
,DragAndDropService
,DragAndDropWrapper
,Embedded
,Form
,InlineDateField
,LegacyWindow
,ListSelect
,MenuBar
,NativeSelect
,OptionGroup
,Panel
,PasswordField
,PopupDateField
,RichTextArea
,Select
,Table
,TextArea
,TextField
,Tree
,TreeTable
,TwinColSelect
,UI
,Upload
,Window
@Deprecated public interface VariableOwner extends Serializable
Deprecated.As of 7.0. Only provided to ease porting of Vaadin 6 components. Do not implement this directly, implementLegacyComponent
.Listener interface for UI variable changes. The user communicates with the application using the so-called variables. When the user makes a change using the UI the terminal trasmits the changed variables to the application, and the components owning those variables may then process those changes.
- Since:
- 3.0
- Author:
- Vaadin Ltd.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
changeVariables(Object source, Map<String,Object> variables)
Deprecated.Called when one or more variables handled by the implementing class are changed.boolean
isEnabled()
Deprecated.Tests if the variable owner is enabled or not.boolean
isImmediate()
Deprecated.Tests if the variable owner is in immediate mode or not.
-
-
-
Method Detail
-
changeVariables
void changeVariables(Object source, Map<String,Object> variables)
Deprecated.Called when one or more variables handled by the implementing class are changed.- Parameters:
source
- the Source of the variable change. This is the origin of the event. For example in Web Adapter this is the request.variables
- the Mapping from variable names to new variable values.
-
isEnabled
boolean isEnabled()
Deprecated.Tests if the variable owner is enabled or not. The terminal should not send any variable changes to disabled variable owners.
- Returns:
true
if the variable owner is enabled,false
if not
-
isImmediate
boolean isImmediate()
Deprecated.Tests if the variable owner is in immediate mode or not. Being in immediate mode means that all variable changes are required to be sent back from the terminal immediately when they occur.
Note:
VariableOwner
does not include a set- method for the immediateness property. This is because not all VariableOwners wish to offer the functionality. Such VariableOwners are never in the immediate mode, thus they always returnfalse
inisImmediate()
.- Returns:
true
if the component is in immediate mode,false
if not.
-
-