|
|||||||||
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
com.extjs.gxt.ui.client.widget.layout.FlowLayout
public class FlowLayout
Layout
that simply renders each child component into its
container. The size and position of children are not altered by this layout.
Field Summary |
---|
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout |
---|
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName |
Constructor Summary | |
---|---|
FlowLayout()
Creates a new layout instance. |
|
FlowLayout(boolean removePostioning)
Creates a new flow layout. |
|
FlowLayout(int margin)
Creates a new layout instance with the given margin. |
Method Summary | |
---|---|
Margins |
getMargins()
Returns the margins of the layout. |
boolean |
getRemovePositioning()
Returns true if positioning is being removed. |
protected void |
onLayout(Container<?> container,
El target)
|
protected void |
renderComponent(Component c,
int index,
El target)
|
void |
setMargin(int margin)
Sets the margins using the give margin. |
void |
setMargins(Margins margins)
Sets the margins of the layout to be applied to the container. |
void |
setRemovePositioning(boolean removePositioning)
True to remove positioning from the container's children (defaults to false). |
Methods inherited from class com.extjs.gxt.ui.client.widget.Layout |
---|
applyMargins, applyPadding, callLayout, fly, fly, getExtraStyle, getLayoutData, getResizeDelay, getSideMargins, initTarget, isLayoutExecuted, isLayoutNeeded, isRenderHidden, isRunning, isValidParent, layout, layoutContainer, onAdd, onComponentHide, onComponentShow, onRemove, onResize, renderAll, setBounds, setContainer, setExtraStyle, setLayoutData, setLayoutNeeded, setLayoutOnChange, setPosition, setRenderHidden, setResizeDelay, setSize |
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 |
Constructor Detail |
---|
public FlowLayout()
public FlowLayout(boolean removePostioning)
removePostioning
- true to remove positioning on child componentspublic FlowLayout(int margin)
margin
- the marginMethod Detail |
---|
public Margins getMargins()
public boolean getRemovePositioning()
public void setMargin(int margin)
margin
- the marginpublic void setMargins(Margins margins)
margins
- the margins in pixelspublic void setRemovePositioning(boolean removePositioning)
removePositioning
- true to remove positioningprotected void onLayout(Container<?> container, El target)
onLayout
in class Layout
protected void renderComponent(Component c, int index, El target)
renderComponent
in class Layout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |