|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.Layout
public abstract class Layout
Layout provides the basic foundation for all other layout classes in GXT. It is a non-visual class that simply provides the base logic required to function as a layout. This class is intended to be extended.
Layout instances should not be shared with multiple containers.
LayoutContainer
Field Summary | |
---|---|
protected Component |
activeItem
|
protected java.lang.String |
componentStyleName
|
protected Container<?> |
container
|
protected boolean |
monitorResize
|
protected boolean |
renderHidden
|
protected El |
target
|
protected java.lang.String |
targetStyleName
|
Constructor Summary | |
---|---|
Layout()
|
Method Summary | |
---|---|
protected void |
applyMargins(El target,
Margins margins)
|
protected void |
applyPadding(El target,
Padding paddings)
|
protected void |
callLayout(Component c,
boolean force)
|
protected El |
fly(com.google.gwt.dom.client.Element elem)
|
protected El |
fly(com.google.gwt.user.client.Element elem)
|
java.lang.String |
getExtraStyle()
Returns the extra style name. |
protected LayoutData |
getLayoutData(Component c)
|
int |
getResizeDelay()
Returns the window resize delay. |
protected int |
getSideMargins(Component c)
|
protected void |
initTarget()
|
protected boolean |
isLayoutExecuted(Container<?> c)
|
protected boolean |
isLayoutNeeded(Container<?> c)
|
boolean |
isRenderHidden()
Returns true if the container will be render child components hidden. |
boolean |
isRunning()
Returns true if the layout is currently running. |
protected boolean |
isValidParent(com.google.gwt.user.client.Element elem,
com.google.gwt.user.client.Element parent)
|
void |
layout()
Layouts the container, by executing it's layout. |
protected void |
layoutContainer()
|
protected void |
onAdd(Component component)
|
protected void |
onComponentHide(Component component)
|
protected void |
onComponentShow(Component component)
|
protected void |
onLayout(Container<?> container,
El target)
|
protected void |
onRemove(Component component)
|
protected void |
onResize(ComponentEvent ce)
|
protected void |
renderAll(Container<?> container,
El target)
|
protected void |
renderComponent(Component component,
int index,
El target)
|
protected void |
setBounds(com.google.gwt.user.client.ui.Widget w,
int x,
int y,
int width,
int height)
|
void |
setContainer(Container<?> ct)
Sets the layout's container. |
void |
setExtraStyle(java.lang.String extraStyle)
Sets an optional extra CSS style name that will be added to the container. |
protected void |
setLayoutData(Component c,
LayoutData data)
|
protected void |
setLayoutNeeded(Container<?> c,
boolean needed)
|
protected void |
setLayoutOnChange(Container<?> c,
boolean change)
|
protected void |
setPosition(Component c,
int left,
int top)
|
void |
setRenderHidden(boolean renderHidden)
True to hide each contained component on render (defaults to false). |
void |
setResizeDelay(int resizeDelay)
Sets the number of milliseconds to buffer resize events (defaults to 0). |
protected void |
setSize(Component c,
int width,
int height)
|
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Component activeItem
protected java.lang.String componentStyleName
protected Container<?> container
protected boolean monitorResize
protected boolean renderHidden
protected El target
protected java.lang.String targetStyleName
Constructor Detail |
---|
public Layout()
Method Detail |
---|
public java.lang.String getExtraStyle()
public int getResizeDelay()
public boolean isRenderHidden()
public boolean isRunning()
public void layout()
public void setContainer(Container<?> ct)
ct
- the containerpublic void setExtraStyle(java.lang.String extraStyle)
extraStyle
- the extra style namepublic void setRenderHidden(boolean renderHidden)
renderHidden
- true to render hiddenpublic void setResizeDelay(int resizeDelay)
monitorResize
= true.
resizeDelay
- the delay in millisecondsprotected void applyMargins(El target, Margins margins)
protected void applyPadding(El target, Padding paddings)
protected void callLayout(Component c, boolean force)
protected El fly(com.google.gwt.dom.client.Element elem)
protected El fly(com.google.gwt.user.client.Element elem)
protected LayoutData getLayoutData(Component c)
protected int getSideMargins(Component c)
protected void initTarget()
protected boolean isLayoutExecuted(Container<?> c)
protected boolean isLayoutNeeded(Container<?> c)
protected boolean isValidParent(com.google.gwt.user.client.Element elem, com.google.gwt.user.client.Element parent)
protected void layoutContainer()
protected void onAdd(Component component)
protected void onComponentHide(Component component)
protected void onComponentShow(Component component)
protected void onLayout(Container<?> container, El target)
protected void onRemove(Component component)
protected void onResize(ComponentEvent ce)
protected void renderAll(Container<?> container, El target)
protected void renderComponent(Component component, int index, El target)
protected void setBounds(com.google.gwt.user.client.ui.Widget w, int x, int y, int width, int height)
protected void setLayoutData(Component c, LayoutData data)
protected void setLayoutNeeded(Container<?> c, boolean needed)
protected void setLayoutOnChange(Container<?> c, boolean change)
protected void setPosition(Component c, int left, int top)
protected void setSize(Component c, int width, int height)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |