|
||||||||||
| 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 |
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 |
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||