|
|||||||||
| 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.BoxComponent
public class BoxComponent
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.
| 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 | |
|---|---|
BoxComponent()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
addListener, addPlugin, 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, isDisabledEvents, 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, sinkEvents, toString |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
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 BoxComponent()
| Method Detail |
|---|
public Rectangle getBounds(boolean local)
local - if true the element's left and top are returned instead of
page coordinates
public int getHeight()
public int getHeight(boolean content)
content - true to get the height minus borders and padding
public Point getPosition(boolean local)
local - true to return the element's left and top rather than page
coordinates
public boolean getShadow()
public Size getSize()
public int getWidth()
public int getWidth(boolean content)
content - true to get width minus borders and padding
public boolean isAutoHeight()
public boolean isAutoWidth()
public boolean isDeferHeight()
public boolean isShim()
public void setAutoHeight(boolean autoHeight)
autoHeight - true to enable auto heightpublic void setAutoWidth(boolean autoWidth)
autoWidth - the auto width state
public void setBounds(int x,
int y,
int width,
int height)
x - the x coordinatey - the y coordinatewidth - the widthheight - the heightpublic void setBounds(Rectangle bounds)
bounds - the update boxpublic void setDeferHeight(boolean deferHeight)
deferHeight - true to defer heightpublic void setHeight(int height)
height - the new heightpublic void setHeight(java.lang.String height)
setHeight in class Componentheight - the new height to set
public void setPagePosition(int x,
int y)
setPosition(int, int). This method fires the Move event.
x - the x coordinatey - the y coordinatepublic void setPagePosition(Point point)
setPosition(int, int). This method fires the Move event.
point - the new location
public void setPixelSize(int width,
int height)
setPixelSize in class Componentwidth - the new width to setheight - the new height to set
public void setPosition(int left,
int top)
setPagePosition(int, int). This method fires the move event.
left - the new lefttop - the new toppublic void setShadow(boolean shadow)
shadow - true to enable the shadowpublic void setShim(boolean shim)
shim - true to enable a shim
public void setSize(int width,
int height)
width - the new width to setheight - the new height to set
public void setSize(java.lang.String width,
java.lang.String height)
setSize in class Componentwidth - the new width to setheight - the new height to setpublic void setWidth(int width)
width - the new width to setpublic void setWidth(java.lang.String width)
setWidth in class Componentwidth - the new width to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||