|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectHTML
com.vaadin.client.VCaption
public class VCaption
| Field Summary | |
|---|---|
static java.lang.String |
CLASSNAME
|
| Constructor Summary | |
|---|---|
VCaption(ApplicationConnection client)
Deprecated. all captions should be associated with a paintable widget and be updated from shared state, not UIDL |
|
VCaption(ComponentConnector component,
ApplicationConnection client)
Creates a caption for a ComponentConnector. |
|
| Method Summary | |
|---|---|
static java.lang.String |
getCaptionOwnerPid(Element e)
|
int |
getHeight()
|
ComponentConnector |
getOwner()
Returns Paintable for which this Caption belongs to. |
static java.lang.String |
getOwnerPid(Element el)
|
int |
getRenderedWidth()
|
int |
getRequiredWidth()
|
protected com.google.gwt.user.client.Element |
getTextElement()
|
TooltipInfo |
getTooltipInfo()
Returns the tooltip that should be shown for the caption |
boolean |
isCaptionAsHtml()
Checks whether captions are rendered as HTML. |
static boolean |
isNeeded(com.vaadin.shared.AbstractComponentState state)
|
static boolean |
mightChange(StateChangeEvent event)
Checks whether anything in a given state change might cause the caption to change. |
protected void |
onAttach()
|
void |
onBrowserEvent(Event event)
|
protected void |
onDetach()
|
void |
setAlignment(java.lang.String alignment)
|
void |
setCaptionAsHtml(boolean captionAsHtml)
Sets whether the caption is rendered as HTML. |
static void |
setCaptionText(Element captionElement,
com.vaadin.shared.AbstractComponentState state)
Sets the text of the given caption element to the caption found in the state. |
static void |
setCaptionText(HasHTML widget,
com.vaadin.shared.AbstractComponentState state)
Sets the text of the given widget to the caption found in the state. |
void |
setMaxWidth(int maxWidth)
|
void |
setTooltipInfo(TooltipInfo tooltipInfo)
Sets the tooltip that should be shown for the caption |
boolean |
shouldBePlacedAfterComponent()
|
boolean |
updateCaption()
Updates the caption from UIDL. |
boolean |
updateCaptionWithoutOwner(java.lang.String caption,
boolean disabled,
boolean hasDescription,
boolean hasError,
java.lang.String iconURL)
Deprecated. |
boolean |
updateCaptionWithoutOwner(java.lang.String caption,
boolean disabled,
boolean hasDescription,
boolean hasError,
java.lang.String iconURL,
java.lang.String iconAltText)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASSNAME
| Constructor Detail |
|---|
@Deprecated public VCaption(ApplicationConnection client)
ComponentConnector.
When using this constructor, getOwner() returns null.
client - ApplicationConnection
public VCaption(ComponentConnector component,
ApplicationConnection client)
ComponentConnector.
component - owner of caption, not nullclient - ApplicationConnection| Method Detail |
|---|
protected void onAttach()
protected void onDetach()
public boolean updateCaption()
#updateCaptionWithoutOwner(UIDL, String, boolean, boolean).
@Deprecated
public boolean updateCaptionWithoutOwner(java.lang.String caption,
boolean disabled,
boolean hasDescription,
boolean hasError,
java.lang.String iconURL)
@Deprecated
public boolean updateCaptionWithoutOwner(java.lang.String caption,
boolean disabled,
boolean hasDescription,
boolean hasError,
java.lang.String iconURL,
java.lang.String iconAltText)
public void onBrowserEvent(Event event)
public static boolean isNeeded(com.vaadin.shared.AbstractComponentState state)
public static boolean mightChange(StateChangeEvent event)
event - the state change event to check
true if the caption might have changed; otherwise
falsepublic ComponentConnector getOwner()
public boolean shouldBePlacedAfterComponent()
public int getRenderedWidth()
public int getRequiredWidth()
public int getHeight()
public void setAlignment(java.lang.String alignment)
public void setMaxWidth(int maxWidth)
public void setTooltipInfo(TooltipInfo tooltipInfo)
tooltipInfo - The tooltip that should be shown or null if no tooltip should
be shownpublic TooltipInfo getTooltipInfo()
protected com.google.gwt.user.client.Element getTextElement()
public static java.lang.String getCaptionOwnerPid(Element e)
public static java.lang.String getOwnerPid(Element el)
public void setCaptionAsHtml(boolean captionAsHtml)
Default is false
captionAsHtml - true if the captions are rendered as HTML, false if rendered
as plain textpublic boolean isCaptionAsHtml()
Default is false
public static void setCaptionText(Element captionElement,
com.vaadin.shared.AbstractComponentState state)
Uses AbstractComponentState.captionAsHtml to determine whether to
set the caption as html or plain text
captionElement - the target elementstate - the state from which to read the caption text and mode
public static void setCaptionText(HasHTML widget,
com.vaadin.shared.AbstractComponentState state)
Uses AbstractComponentState.captionAsHtml to determine whether to
set the caption as html or plain text
widget - the target widgetstate - the state from which to read the caption text and mode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||