|
|||||||||
| 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. |
int |
getShadowOffset()
Returns the shadow offset. |
Layer.ShadowPosition |
getShadowPosition()
Returns the shadow position. |
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 |
setShadowOffset(int shadowOffset)
Sets the shadow offset (defaults to 4). |
void |
setShadowPosition(Layer.ShadowPosition shadowPosition)
Sets the shadow position (defaults to SIDES). |
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. |
void |
sync(boolean show)
Syncs the layer of the component. |
void |
syncSize()
|
| 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 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 Layer.ShadowPosition getShadowPosition()
public int getShadowOffset()
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 setShadowPosition(Layer.ShadowPosition shadowPosition)
shadowPosition - the positionpublic void setShadowOffset(int shadowOffset)
shadowOffset - the offsetpublic 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 setpublic void sync(boolean show)
public void syncSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||