|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.Header
public class Header
A custom component that supports an icon, text, and tool area.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary | |
|---|---|
protected com.google.gwt.user.client.ui.AbstractImagePrototype |
icon
|
| Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Header()
|
|
| Method Summary | |
|---|---|
void |
addTool(Component tool)
Adds a tool. |
protected void |
doAttachChildren()
|
protected void |
doDetachChildren()
|
java.lang.String |
getHtml()
Returns the header's HTML. |
com.google.gwt.user.client.ui.AbstractImagePrototype |
getIcon()
Returns the icon. |
java.lang.String |
getIconAltText()
Returns the icon's alt text. |
java.lang.String |
getTextStyle()
Returns the item's text style. |
Component |
getTool(int index)
Returns the tool at the given index. |
int |
getToolCount()
Returns the number of tool items. |
java.util.List<Component> |
getTools()
Returns the tool's. |
int |
indexOf(Component tool)
Returns the index of the given tool. |
void |
insertTool(Component tool,
int index)
Inserts a tool. |
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
void |
removeTool(Component tool)
Removes a tool. |
void |
setHtml(java.lang.String html)
Sets the header's HTML content. |
void |
setIcon(com.google.gwt.user.client.ui.AbstractImagePrototype icon)
Sets the header's icon style. |
void |
setIconAltText(java.lang.String altIconText)
Sets the header's icon alt text (defaults to null). |
void |
setIconStyle(java.lang.String icon)
Sets the icon style. |
void |
setText(java.lang.String text)
Sets the header's text. |
void |
setTextStyle(java.lang.String textStyle)
Sets the style name added to the header's text element. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onUnload, setLayoutData |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, resolvePotentialElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected com.google.gwt.user.client.ui.AbstractImagePrototype icon
| Constructor Detail |
|---|
public Header()
| Method Detail |
|---|
public void addTool(Component tool)
tool - the tool to be insertedpublic com.google.gwt.user.client.ui.AbstractImagePrototype getIcon()
IconSupport
getIcon in interface IconSupportpublic java.lang.String getHtml()
public java.lang.String getTextStyle()
public java.lang.String getIconAltText()
public void setIconAltText(java.lang.String altIconText)
altIconText - the icon alt textpublic Component getTool(int index)
index - the index
public int getToolCount()
public java.util.List<Component> getTools()
public int indexOf(Component tool)
tool - the tool
public void insertTool(Component tool,
int index)
tool - the tool to insertindex - the insert locationpublic void removeTool(Component tool)
tool - the tool to removepublic void setIcon(com.google.gwt.user.client.ui.AbstractImagePrototype icon)
<code>
.my-icon {
background: url(images/icons/my-icon.png) no-repeat center left !important;
}
</code>
setIcon in interface IconSupporticon - the iconpublic void setIconStyle(java.lang.String icon)
IconSupport
setIconStyle in interface IconSupporticon - a CSS style namepublic void setHtml(java.lang.String html)
html - the new html contentpublic void setText(java.lang.String text)
text - the textpublic void setTextStyle(java.lang.String textStyle)
textStyle - the text styleprotected void doAttachChildren()
doAttachChildren in class Componentprotected void doDetachChildren()
doDetachChildren in class Component
protected void onRender(com.google.gwt.user.client.Element target,
int index)
Component
onRender in class Componenttarget - the target elementindex - the insert location
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||