|
|||||||||
| 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 |
|---|
| 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. |
com.google.gwt.user.client.ui.AbstractImagePrototype |
getIcon()
Returns the icon. |
java.lang.String |
getText()
Returns the header's 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. |
void |
insertTool(Component tool,
int index)
Inserts a tool. |
void |
removeTool(Component tool)
Removes a tool. |
void |
setIcon(com.google.gwt.user.client.ui.AbstractImagePrototype icon)
Sets the header's icon style. |
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 |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 getText()
public java.lang.String getTextStyle()
public Component getTool(int index)
index - the index
public int getToolCount()
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 setText(java.lang.String text)
text - the new textpublic void setTextStyle(java.lang.String textStyle)
textStyle - the text style
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||