com.extjs.gxt.ui.client.widget
クラス Header

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.Header
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener

public class Header
extends Component

A custom component that supports an icon, text, and tool area.


入れ子クラス 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承された 入れ子クラス/インターフェース
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたフィールド(Fields)
DEBUG_ID_PREFIX
 
コンストラクタ 概要
Header()
           
 
メソッド 概要
 void addTool(Component tool)
          Adds a tool.
 java.lang.String getIconStyle()
          Returns the header's icon style.
 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 setIconStyle(java.lang.String iconStyle)
          Sets the header's 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.
 
クラス com.extjs.gxt.ui.client.widget.Component から継承されたメソッド
addListener, addStyleName, addWidgetListener, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, isEnabled, isRendered, isVisible, onBrowserEvent, onComponentEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setHeight, setId, setIntStyleAttribute, setItemId, setPixelSize, setSize, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, setWidth, show, toString
 
クラス com.google.gwt.user.client.ui.Widget から継承されたメソッド
getParent, isAttached
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたメソッド
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタ 詳細

Header

public Header()
メソッド 詳細

addTool

public void addTool(Component tool)
Adds a tool.

パラメータ::
tool - the tool to be inserted

getIconStyle

public java.lang.String getIconStyle()
Returns the header's icon style.

戻り値:
the icon style

getText

public java.lang.String getText()
Returns the header's text.

戻り値:
the text

getTextStyle

public java.lang.String getTextStyle()
Returns the item's text style.

戻り値:
the textStyle the text style

getTool

public Component getTool(int index)
Returns the tool at the given index.

パラメータ:
index - the index
戻り値:
the tool

getToolCount

public int getToolCount()
Returns the number of tool items.

戻り値:
the count

insertTool

public void insertTool(Component tool,
                       int index)
Inserts a tool.

パラメータ:
tool - the tool to insert
index - the insert location

removeTool

public void removeTool(Component tool)
Removes a tool.

パラメータ:
tool - the tool to remove

setIconStyle

public void setIconStyle(java.lang.String iconStyle)
Sets the header's icon style.

パラメータ:
iconStyle - the icon style

setText

public void setText(java.lang.String text)
Sets the header's text.

パラメータ:
text - the new text

setTextStyle

public void setTextStyle(java.lang.String textStyle)
Sets the style name added to the header's text element.

パラメータ:
textStyle - the text style