| com.gwtext.client.widgets.Component com.gwtext.client.widgets.BoxComponent
All known Subclasses: com.gwtext.client.widgets.Container, com.gwtext.client.widgets.WidgetComponent, com.gwtext.client.widgets.DataView, com.gwtext.client.widgets.form.Field, com.gwtext.client.widgets.Toolbar, com.gwtext.client.widgets.ProgressBar,
BoxComponent | public class BoxComponent extends Component (Code) | | 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 withnin the Component rendering model. All container classes should subclass
BoxComponent so that they will work consistently when nested within other Ext layout containers.
|
Method Summary | |
native protected void | addListener(BoxComponentListener listener) Add a Component listener. | native protected JavaScriptObject | create(JavaScriptObject config) | public void | doOnRender(Function function) Runs the specified function when the Component is rendered. | public void | doOnRender(Function function, int delayMillis) Runs the specified function when the Component is rendered. | public boolean | getAutoHeight() | public boolean | getAutoWidth() | native public Box | getBox() Gets the current box measurements of the component's. | native public Box | getBox(boolean local) Gets the current box measurements of the component's. | protected JavaScriptObject | getConfigPrototype() | public int | getHeight() The height of this component in pixels. | native public int[] | getPosition() Gets the current XY position of the component's underlying element. | native public int[] | getPosition(boolean local) Gets the current XY position of the component's underlying element. | native public Size | getSize() Gets the current size of the component's underlying element. | public int | getWidth() The component width. | public String | getXType() | public void | setAutoHeight(boolean autoHeight) True to use height:'auto', false to use fixed height (defaults to false). | public void | setAutoWidth(boolean autoWidth) True to use width:'auto', false to use fixed width (defaults to false). | public void | setHeight(int height) The height of this component in pixels (defaults to auto). | public void | setHeight(String height) Set the height in pixels or auto. | native public void | setPagePosition(int x, int y) Sets the page XY position of the component. | native public void | setPosition(int left, int top) Sets the left and top of the component. | public void | setWidth(int width) The component width. | public void | setWidth(String width) Set the width in pixels or auto. | native public void | syncSize() Force the component's size to recalculate based on the underlying element's current height and width. | native public void | updateBox(Box box) Sets the current box measurements of the component's underlying element. |
BoxComponent | public BoxComponent()(Code) | | |
BoxComponent | public BoxComponent(JavaScriptObject jsObj)(Code) | | |
BoxComponent | public BoxComponent(Element element)(Code) | | |
addListener | native protected void addListener(BoxComponentListener listener)(Code) | | Add a Component listener.
Parameters: listener - the listener |
create | native protected JavaScriptObject create(JavaScriptObject config)(Code) | | |
doOnRender | public void doOnRender(Function function)(Code) | | Runs the specified function when the Component is rendered.
Parameters: function - the function to execute on render |
doOnRender | public void doOnRender(Function function, int delayMillis)(Code) | | Runs the specified function when the Component is rendered.
Parameters: function - the function to execute on render Parameters: delayMillis - a delay in milliseconds |
getAutoHeight | public boolean getAutoHeight()(Code) | | true if using auto height, else false |
getAutoWidth | public boolean getAutoWidth()(Code) | | true if using auto width, else false |
getBox | native public Box getBox()(Code) | | Gets the current box measurements of the component's.
the box measurements |
getBox | native public Box getBox(boolean local)(Code) | | Gets the current box measurements of the component's.
Parameters: local - if true the element's left and top are returned instead of page XY (defaults to false) the box measurements |
getConfigPrototype | protected JavaScriptObject getConfigPrototype()(Code) | | |
getHeight | public int getHeight()(Code) | | The height of this component in pixels.
the hieght of the component in pixels |
getPosition | native public int[] getPosition()(Code) | | Gets the current XY position of the component's underlying element.
the XY position |
getPosition | native public int[] getPosition(boolean local)(Code) | | Gets the current XY position of the component's underlying element.
the XY position Parameters: local - if true the element's left and top are returned instead of page XY (defaults to false) |
getSize | native public Size getSize()(Code) | | Gets the current size of the component's underlying element.
the components Size |
getWidth | public int getWidth()(Code) | | The component width.
the component width, -1 for auto |
setAutoHeight | public void setAutoHeight(boolean autoHeight) throws IllegalStateException(Code) | | True to use height:'auto', false to use fixed height (defaults to false).
Note: This property cannot be changed after the Component has been rendered.
Parameters: autoHeight - true to use auto height throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setAutoWidth | public void setAutoWidth(boolean autoWidth) throws IllegalStateException(Code) | | True to use width:'auto', false to use fixed width (defaults to false).
Parameters: autoWidth - true for auto width throws: IllegalStateException - this property cannot be changed after the Component has been rendered |
setHeight | public void setHeight(int height)(Code) | | The height of this component in pixels (defaults to auto).
Parameters: height - the component height |
setHeight | public void setHeight(String height)(Code) | | Set the height in pixels or auto. Note that setting percentage based heights will lead to unpredictable
display behavior. You should use the various layouts like
com.gwtext.client.widgets.layout.AnchorLayout to control percentage based rendering of components.
Parameters: height - the component height |
setPagePosition | native public void setPagePosition(int x, int y)(Code) | | Sets the page XY position of the component. To set the left and top instead, use setPosition.
This method fires the move event.
Parameters: x - the new X position Parameters: y - the new Y opsition |
setPosition | native public void setPosition(int left, int top)(Code) | | Sets the left and top of the component. To set the page XY position instead, use setPagePosition.
This method fires the move event.
Parameters: left - the new left Parameters: top - the new right |
setWidth | public void setWidth(int width)(Code) | | The component width. (defaults to auto)
Parameters: width - the width, -1 for auto |
setWidth | public void setWidth(String width)(Code) | | Set the width in pixels or auto. Note that setting percentage based widths will lead to unpredictable
display behavior. You should use the various layouts like
com.gwtext.client.widgets.layout.AnchorLayout to control percentage based rendering of components.
Parameters: width - the component height |
syncSize | native public void syncSize()(Code) | | Force the component's size to recalculate based on the underlying element's current height and width.
|
updateBox | native public void updateBox(Box box)(Code) | | Sets the current box measurements of the component's underlying element.
Parameters: box - the new box measurements |
Methods inherited from com.gwtext.client.widgets.Component | public void addClass(String cls)(Code)(Java Doc) native public void addClassCreated(String cls)(Code)(Java Doc) native public void addEvent(String events)(Code)(Java Doc) public void addEvents(String[] events)(Code)(Java Doc) protected void addListener(String event, JavaScriptObject fn)(Code)(Java Doc) native public void addListener(String event, Function funtion)(Code)(Java Doc) native protected void addListener(ComponentListener listener)(Code)(Java Doc) protected void afterRender()(Code)(Java Doc) protected void beforeDestroy()(Code)(Java Doc) protected void check() throws IllegalStateException(Code)(Java Doc) public Component cloneComponent()(Code)(Java Doc) public Component cloneComponent(Component overrides)(Code)(Java Doc) native protected JavaScriptObject cloneConfig(JavaScriptObject config)(Code)(Java Doc) abstract protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc) native public void destroy()(Code)(Java Doc) public void disable()(Code)(Java Doc) public void enable()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) protected void error(String message) throws IllegalStateException(Code)(Java Doc) public void focus()(Code)(Java Doc) native public void focus(boolean selectText)(Code)(Java Doc) native public void focus(boolean selectText, int delay)(Code)(Java Doc) public Element getApplyTo()(Code)(Java Doc) protected String getAttribute(String attribute)(Code)(Java Doc) protected boolean getAttributeAsBoolean(String attribute)(Code)(Java Doc) protected float getAttributeAsFloat(String attribute)(Code)(Java Doc) protected int getAttributeAsInt(String attribute)(Code)(Java Doc) protected JavaScriptObject getAttributeAsJavaScriptObject(String attribute)(Code)(Java Doc) public boolean getAutoShow()(Code)(Java Doc) public String getCls()(Code)(Java Doc) native protected static JavaScriptObject getComponentJS(String id)(Code)(Java Doc) public JavaScriptObject getConfig()(Code)(Java Doc) abstract protected JavaScriptObject getConfigPrototype()(Code)(Java Doc) public String getCtCls()(Code)(Java Doc) public String getDisabledClass()(Code)(Java Doc) native public ExtElement getEl()(Code)(Java Doc) native protected Element getElement(JavaScriptObject jsObj)(Code)(Java Doc) public Element getElement()(Code)(Java Doc) public String getHideMode()(Code)(Java Doc) public boolean getHideParent()(Code)(Java Doc) public String getId()(Code)(Java Doc) native public String getItemId()(Code)(Java Doc) public JavaScriptObject getJsObj()(Code)(Java Doc) public int getOffsetHeight()(Code)(Java Doc) public int getOffsetWidth()(Code)(Java Doc) public JavaScriptObject getOrCreateJsObj()(Code)(Java Doc) native public Container getOwnerContainer()(Code)(Java Doc) public Element getRenderTo()(Code)(Java Doc) public String[] getStateEvents()(Code)(Java Doc) public String getStateId()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) protected Element getStyleElement()(Code)(Java Doc) public String getTitle()(Code)(Java Doc) public String getXType()(Code)(Java Doc) native public String getXTypes()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public void hide()(Code)(Java Doc) protected void initComponent()(Code)(Java Doc) public boolean isCreated()(Code)(Java Doc) public boolean isDisabled()(Code)(Java Doc) public boolean isHidden()(Code)(Java Doc) native public boolean isRendered()(Code)(Java Doc) native public boolean isVisible()(Code)(Java Doc) native public boolean isXType(String xtype)(Code)(Java Doc) native public boolean isXType(String xtype, boolean shallow)(Code)(Java Doc) protected void onDestroy()(Code)(Java Doc) native public void removeClass(String cls)(Code)(Java Doc) native public void render(String id)(Code)(Java Doc) native public void render(String id, String position)(Code)(Java Doc) native public void render(String id, int position)(Code)(Java Doc) native public void render(Element element)(Code)(Java Doc) native public void render(Element element, String position)(Code)(Java Doc) native public void render(Element element, int position)(Code)(Java Doc) public void setApplyTo(Element element) throws IllegalStateException(Code)(Java Doc) protected void setAttribute(String attribute, String value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, String value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc) protected void setAttribute(String attribute, int[] value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, int[] value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc) protected void setAttribute(String attribute, long value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, double value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, int value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, int value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc) protected void setAttribute(String attribute, Date value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, JavaScriptObject value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, JavaScriptObject value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc) protected void setAttribute(String attribute, String[] value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, String[] value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc) protected void setAttribute(String attribute, boolean value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, boolean value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc) protected void setAttribute(String attribute, Element value, boolean allowPostCreate)(Code)(Java Doc) protected void setAttribute(String attribute, Element value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc) public void setAutoEl(String autoEl)(Code)(Java Doc) public void setAutoShow(boolean autoShow) throws IllegalStateException(Code)(Java Doc) public void setCls(String cls)(Code)(Java Doc) public void setCtCls(String ctCls) throws IllegalStateException(Code)(Java Doc) public void setDisabled(boolean disabled)(Code)(Java Doc) public void setDisabledClass(String disabledClass)(Code)(Java Doc) public void setEl(Element el) throws IllegalStateException(Code)(Java Doc) public void setEl(String elementID) throws IllegalStateException(Code)(Java Doc) public void setHeight(String height)(Code)(Java Doc) public void setHideMode(String hideMode)(Code)(Java Doc) public void setHideParent(boolean hideParent) throws IllegalStateException(Code)(Java Doc) final public void setId(String id) throws IllegalStateException(Code)(Java Doc) public void setRenderTo(Element elem) throws IllegalStateException(Code)(Java Doc) public void setStateEvents(String[] stateEvents) throws IllegalStateException(Code)(Java Doc) public void setStateId(String stateId) throws IllegalStateException(Code)(Java Doc) public void setStyle(String style) throws IllegalStateException(Code)(Java Doc) public void setTitle(String title)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public void setWidth(String width)(Code)(Java Doc) public void show()(Code)(Java Doc)
|
|
|