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

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.DataListItem
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener

public class DataListItem
extends Component

A item contained in a List.

See Also:
DataList

入れ子クラス 概要
 
クラス 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
 
コンストラクタ 概要
DataListItem()
          Creates a new list item.
DataListItem(java.lang.String text)
          Creates a new list item.
 
メソッド 概要
 void addSelectionListener(SelectionListener listener)
          Adds a selection listener.
 java.lang.String getIconStyle()
          Returns the icon style.
 DataList getList()
          Returns the item's parent list.
 java.lang.String getText()
          Returns the item's text.
 java.lang.String getTextStyle()
          Returns the item's text style.
 boolean isChecked()
          Returns true if the item is checked.
 void onComponentEvent(ComponentEvent ce)
          Any events a component receives will be forwarded to this method.
 void removeSelectionListener(SelectionListener listener)
          Removes a previously added listener.
 void setChecked(boolean checked)
          Sets the item's checked state.
 void setIconStyle(java.lang.String iconStyle)
          Sets the item's icon style.
 void setText(java.lang.String text)
          Sets the item's text.
 void setTextStyle(java.lang.String textStyle)
          Sets the item's text style.
 
クラス 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, 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
 

コンストラクタ 詳細

DataListItem

public DataListItem()
Creates a new list item.


DataListItem

public DataListItem(java.lang.String text)
Creates a new list item.

パラメータ:
text - the text
メソッド 詳細

addSelectionListener

public void addSelectionListener(SelectionListener listener)
Adds a selection listener.

パラメータ::
listener - the listener

getIconStyle

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

戻り値:
the icon style

getList

public DataList getList()
Returns the item's parent list.

戻り値:
the list

getText

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

戻り値:
the text

getTextStyle

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

戻り値:
the text style

isChecked

public boolean isChecked()
Returns true if the item is checked.

戻り値:
the checked state

onComponentEvent

public void onComponentEvent(ComponentEvent ce)
Description copied from class: Component
Any events a component receives will be forwarded to this method. Subclasses should override as needed. The Component.onBrowserEvent(com.google.gwt.user.client.Event) method should not be overridden or modified.

オーバーライド:
onComponentEvent in class Component
パラメータ:
ce - the base event

removeSelectionListener

public void removeSelectionListener(SelectionListener listener)
Removes a previously added listener.

パラメータ:
listener - the listener to be removed

setChecked

public void setChecked(boolean checked)
Sets the item's checked state.

パラメータ:
checked - the check state

setIconStyle

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

パラメータ:
iconStyle - the icon style

setText

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

パラメータ:
text - the text

setTextStyle

public void setTextStyle(java.lang.String textStyle)
Sets the item's text style.

パラメータ:
textStyle - the text style name