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

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.BoxComponent
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener
Direct Known Subclasses:
Container, DatePicker, Field, Html, IconButton, ModalPanel, Shadow, SplitBar, TableColumnUI, TableHeader, Text, WidgetComponent

public class BoxComponent
extends Component

Base class for any visual Component that uses a box container. BoxComponent provides automatic box model adjustments for sizing and positioning and will work correctly within the Component rendering model.

Events:
Resize : BoxComponentEvent(boxComponent, width, height)
Fires after the component is resized.
Move : BoxComponentEvent(boxComponent, x, y)
Fires after the component is moved.


入れ子クラス 概要
 
クラス 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
 
コンストラクタ 概要
BoxComponent()
           
 
メソッド 概要
 Rectangle getBounds(boolean local)
          Gets the current box measurements of the component's underlying element.
 int getHeight()
          Returns the component's offset height.
 int getHeight(boolean content)
          Return the component's height.
 Point getPosition(boolean local)
          Returns the component's current position.
 boolean getShadow()
          Returns true if the shadow is enabled.
 Size getSize()
          Returns the component's size.
 int getWidth()
          Returns the component's width.
 int getWidth(boolean content)
          Returns the component's width.
 boolean isAutoHeight()
           
 boolean isAutoWidth()
           
 boolean isDeferHeight()
          Returns true if the height is being deferred
 boolean isShim()
          Returns true if shimming is enabled.
 void setAutoHeight(boolean autoHeight)
          Sets the component's auto height value (defaults to false).
 void setAutoWidth(boolean autoWidth)
          True to use width:'auto', false to use fixed width (defaults to false).
 void setBounds(int x, int y, int width, int height)
          Sets the component's size.
 void setBounds(Rectangle bounds)
          Sets the component's size.
 void setDeferHeight(boolean deferHeight)
          True to defer height calculations to an external component, false to allow this component to set its own height (defaults to false).
 void setHeight(int height)
          Sets the component's height.
 void setHeight(java.lang.String height)
          Sets the height of the component.
 void setPagePosition(int x, int y)
          Sets the page XY position of the component.
 void setPagePosition(Point point)
          Sets the page XY position of the component.
 void setPixelSize(int width, int height)
          Sets the width and height of the component.
 void setPosition(int left, int top)
          Sets the left and top of the component.
 void setShadow(boolean shadow)
          True to enable a shadow that will be displayed behind the component (defaults to false).
 void setShim(boolean shim)
          True to enable a shim which uses a transparent iframe to stop content from bleeding through.
 void setSize(int width, int height)
          Sets the width and height of the component.
 void setSize(java.lang.String width, java.lang.String height)
          Sets the width and height of the component.
 void setWidth(int width)
          Sets the width of the component.
 void setWidth(java.lang.String width)
          Sets the width of the component.
 
クラス 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, setId, setIntStyleAttribute, setItemId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, 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
 

コンストラクタ 詳細

BoxComponent

public BoxComponent()
メソッド 詳細

getBounds

public Rectangle getBounds(boolean local)
Gets the current box measurements of the component's underlying element. The component must be attached to return page coordinates.

パラメータ:
local - if true the element's left and top are returned instead of page coordinates
戻り値:
the component's bounds

getHeight

public int getHeight()
Returns the component's offset height.

戻り値:
the height

getHeight

public int getHeight(boolean content)
Return the component's height.

パラメータ:
content - true to get the height minus borders and padding
戻り値:
the height

getPosition

public Point getPosition(boolean local)
Returns the component's current position. The component must be attached to return page coordinates.

パラメータ:
local - true to return the element's left and top rather than page coordinates
戻り値:
the position

getShadow

public boolean getShadow()
Returns true if the shadow is enabled.

戻り値:
the shadow the shadow state

getSize

public Size getSize()
Returns the component's size.

戻り値:
the size

getWidth

public int getWidth()
Returns the component's width.

戻り値:
the width

getWidth

public int getWidth(boolean content)
Returns the component's width.

パラメータ:
content - true to get width minus borders and padding
戻り値:
the width

isAutoHeight

public boolean isAutoHeight()
戻り値:
the autoHeight

isAutoWidth

public boolean isAutoWidth()
戻り値:
the autoWidth

isDeferHeight

public boolean isDeferHeight()
Returns true if the height is being deferred

戻り値:
the defer heigh state

isShim

public boolean isShim()
Returns true if shimming is enabled.

戻り値:
the shim state

setAutoHeight

public void setAutoHeight(boolean autoHeight)
Sets the component's auto height value (defaults to false).

パラメータ:
autoHeight - true to enable auto height

setAutoWidth

public void setAutoWidth(boolean autoWidth)
True to use width:'auto', false to use fixed width (defaults to false).

パラメータ:
autoWidth - the auto width state

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Sets the component's size. This method fires the Move and Resize events. element.

パラメータ:
x - the x coordinate
y - the y coordinate
width - the width
height - the height

setBounds

public void setBounds(Rectangle bounds)
Sets the component's size. This method fires the Move and Resize events. element.

パラメータ:
bounds - the update box

setDeferHeight

public void setDeferHeight(boolean deferHeight)
True to defer height calculations to an external component, false to allow this component to set its own height (defaults to false).

パラメータ:
deferHeight - true to defer height

setHeight

public void setHeight(int height)
Sets the component's height. This method fires the Resize event. element.

パラメータ:
height - the new height

setHeight

public void setHeight(java.lang.String height)
Sets the height of the component. This method fires the Resize event. element.

オーバーライド:
setHeight in class Component
パラメータ:
height - the new height to set

setPagePosition

public void setPagePosition(int x,
                            int y)
Sets the page XY position of the component. To set the left and top instead, use setPosition(int, int). This method fires the Move event.

パラメータ:
x - the x coordinate
y - the y coordinate

setPagePosition

public void setPagePosition(Point point)
Sets the page XY position of the component. To set the left and top instead, use setPosition(int, int). This method fires the Move event.

パラメータ:
point - the new location

setPixelSize

public void setPixelSize(int width,
                         int height)
Sets the width and height of the component. This method fires the resize event.

オーバーライド:
setPixelSize in class Component
パラメータ:
width - the new width to set
height - the new height to set

setPosition

public void setPosition(int left,
                        int top)
Sets the left and top of the component. To set the page XY position instead, use setPagePosition(int, int). This method fires the move event.

パラメータ:
left - the new left
top - the new top

setShadow

public void setShadow(boolean shadow)
True to enable a shadow that will be displayed behind the component (defaults to false).

パラメータ:
shadow - true to enable the shadow

setShim

public void setShim(boolean shim)
True to enable a shim which uses a transparent iframe to stop content from bleeding through.

パラメータ:
shim - true to enable a shim

setSize

public void setSize(int width,
                    int height)
Sets the width and height of the component. This method fires the Resize event.

パラメータ:
width - the new width to set
height - the new height to set

setSize

public void setSize(java.lang.String width,
                    java.lang.String height)
Sets the width and height of the component. This method fires the Resize event.

オーバーライド:
setSize in class Component
パラメータ:
width - the new width to set
height - the new height to set

setWidth

public void setWidth(int width)
Sets the width of the component. This method fires the Resize event.

パラメータ:
width - the new width to set

setWidth

public void setWidth(java.lang.String width)
Sets the width of the component. This method fires the Resize event.

オーバーライド:
setWidth in class Component
パラメータ:
width - the new width to set