|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.terminal.gwt.client.communication.SharedState
com.vaadin.terminal.gwt.client.ComponentState
public class ComponentState
Default shared state implementation for UI components. State classes of concrete components should extend this class.
| Constructor Summary | |
|---|---|
ComponentState()
|
|
| Method Summary | |
|---|---|
void |
addRegisteredEventListener(String eventListenerId)
Adds an event listener id. |
String |
getCaption()
Gets the caption of the component (typically shown by the containing layout). |
String |
getDebugId()
Gets the debug id for the component. |
String |
getDescription()
Gets the description of the component (typically shown as tooltip). |
String |
getErrorMessage()
Returns the current error message for the component. |
String |
getHeight()
Returns the component height as set by the server. |
URLReference |
getIcon()
|
Set<String> |
getRegisteredEventListeners()
Gets the identifiers for the event listeners that have been registered for the component (using an event id) |
List<String> |
getStyles()
Gets the style names for the component. |
String |
getWidth()
Returns the component width as set by the server. |
boolean |
hasDescription()
Returns true if the component has a description. |
boolean |
hasStyles()
Returns true if the component has user-defined styles. |
boolean |
isEnabled()
Returns true if the component is enabled. |
boolean |
isImmediate()
Returns true if the component is in immediate mode. |
boolean |
isReadOnly()
Returns true if the component is in read-only mode. |
boolean |
isUndefinedHeight()
Returns true if the component height is undefined, false if defined (absolute or relative). |
boolean |
isUndefinedWidth()
Returns true if the component width is undefined, false if defined (absolute or relative). |
boolean |
isVisible()
Returns the visibility state of the component. |
void |
removeRegisteredEventListener(String eventIdentifier)
Removes an event listener id. |
void |
setCaption(String caption)
Sets the caption of the component (typically shown by the containing layout). |
void |
setDebugId(String debugId)
Sets the debug id for the component. |
void |
setDescription(String description)
Sets the description of the component (typically shown as tooltip). |
void |
setEnabled(boolean enabled)
Enables or disables the component. |
void |
setErrorMessage(String errorMessage)
Sets the current error message for the component. |
void |
setHeight(String height)
Sets the height of the component in the server format. |
void |
setIcon(URLReference icon)
|
void |
setImmediate(boolean immediate)
Sets or resets the immediate mode for a component. |
void |
setReadOnly(boolean readOnly)
Sets or resets the read-only mode for a component. |
void |
setRegisteredEventListeners(Set<String> registeredEventListeners)
Sets the identifiers for the event listeners that have been registered for the component (using an event id) |
void |
setStyles(List<String> styles)
Sets the style names for the component. |
void |
setVisible(boolean visible)
Sets the visibility state of the component. |
void |
setWidth(String width)
Sets the width of the component in the server format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentState()
| Method Detail |
|---|
public String getHeight()
public void setHeight(String height)
height - component heightpublic boolean isUndefinedHeight()
public String getWidth()
public void setWidth(String width)
width - component widthpublic boolean isUndefinedWidth()
public boolean isReadOnly()
Component.isReadOnly()public void setReadOnly(boolean readOnly)
readOnly - new mode for the componentcom.vaadin.ui.Component#setReadOnly()public boolean isImmediate()
VariableOwner.isImmediate()public void setImmediate(boolean immediate)
immediate - new mode for the componentcom.vaadin.terminal.VariableOwner#setImmediate()public boolean hasStyles()
public boolean isEnabled()
Component.isEnabled()public void setEnabled(boolean enabled)
enabled - new mode for the componentComponent.setEnabled(boolean)public String getDescription()
AbstractComponent.getDescription()public void setDescription(String description)
description - new component description (can be null)AbstractComponent.setDescription(String)public boolean hasDescription()
public String getCaption()
Component.getCaption()public void setCaption(String caption)
caption - new component caption - can be null (no caption) or empty
string (reserve space for an empty caption)Component.setCaption(String)public boolean isVisible()
Component.isVisible() returns as this takes the hierarchy
into account.
public void setVisible(boolean visible)
visible - The new visibility state.public URLReference getIcon()
public void setIcon(URLReference icon)
public List<String> getStyles()
public void setStyles(List<String> styles)
styles - A list containing style namespublic String getDebugId()
public void setDebugId(String debugId)
debugId - The new debugId for the component or null for no debug idpublic Set<String> getRegisteredEventListeners()
public void setRegisteredEventListeners(Set<String> registeredEventListeners)
registeredEventListeners - The new set of identifiers or null if no identifiers have been
registeredpublic void addRegisteredEventListener(String eventListenerId)
eventListenerId - The event identifier to addpublic void removeRegisteredEventListener(String eventIdentifier)
eventListenerId - The event identifier to removepublic String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage - HTML formatted error message to show for the component or null
for none
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||