|
|||||||||
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
com.extjs.gxt.ui.client.widget.Container<T>
com.extjs.gxt.ui.client.widget.ScrollContainer<LayoutContainer>
com.extjs.gxt.ui.client.widget.custom.Portal
public class Portal
A Portal container of Portlets. It is required that
setColumnWidth(int, double)
be called for each column prior to
rendering.
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.extjs.gxt.ui.client.widget.Container |
---|
attachChildren, enableLayout, layoutExecuted, layoutNeeded, layoutOnAttach, layoutOnChange |
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
Portal(int numColumns)
Creates a new portal container. |
Method Summary | |
---|---|
void |
add(Portlet portlet,
int column)
Adds a portlet to the portal. |
protected DragListener |
createDragListener()
|
int |
getPortletColumn(Portlet portlet)
Returns the column of the given porlet. |
int |
getPortletIndex(Portlet portlet)
Returns the index of the column for the given portlet. |
ScrollSupport |
getScrollSupport()
Returns the scroll support instance. |
int |
getSpacing()
Returns the spacing between portlets. |
void |
insert(Portlet portlet,
int index,
int column)
Inserts a portlet. |
boolean |
isAutoScroll()
Returns true if auto scroll is enabled (defaults to true). |
protected void |
onDragCancel(DragEvent event)
|
protected void |
onDragEnd(DragEvent de)
|
protected void |
onDragLeave(DragEvent de)
|
protected void |
onDragMove(DragEvent de)
|
protected void |
onDragStart(DragEvent de)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
void |
remove(Portlet portlet,
int column)
Removes a portlet from the portal. |
void |
setAdjustForScroll(boolean adjust)
True to adjust the layout for a vertical scroll bar (defaults to true). |
void |
setAutoScroll(boolean autoScroll)
True to automatically scroll the portal container when the user hovers over the top and bottom of the container (defaults to true). |
void |
setColumnWidth(int colIndex,
double width)
Sets the column's width. |
void |
setSpacing(int spacing)
Sets the spacing between portlets (defaults to 10). |
Methods inherited from class com.extjs.gxt.ui.client.widget.ScrollContainer |
---|
addScrollListener, afterRender, getHScrollPosition, getScrollMode, getVScrollPosition, onComponentEvent, removeScrollListener, scrollIntoView, setHScrollPosition, setScrollMode, setVScrollPosition |
Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
---|
add, adjustIndex, adopt, createContainerEvent, disable, doAttachChildren, doDetachChildren, doLayout, doLayout, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getLayout, getLayoutTarget, getWidget, indexOf, insert, isLayoutNeeded, iterator, layout, layout, notifyHide, notifyShow, onAfterLayout, onAttach, onBeforeLayoutExcecuted, onInsert, onLayoutExcecuted, onRemove, orphan, remove, remove, removeAll, removeAll, scrollIntoView, setLayout, setLayoutNeeded, setLayoutOnChange, wrapWidget |
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustPosition, adjustSize, createComponentEvent, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onResize, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Portal(int numColumns)
numColumns
- the number of columnsMethod Detail |
---|
public void add(Portlet portlet, int column)
portlet
- the portlet to addcolumn
- the column to insert intopublic int getPortletColumn(Portlet portlet)
portlet
- the portlet
public int getPortletIndex(Portlet portlet)
portlet
- the portlet
public ScrollSupport getScrollSupport()
public int getSpacing()
public void insert(Portlet portlet, int index, int column)
portlet
- the portlet to addindex
- the insert indexcolumn
- the column to insert intopublic boolean isAutoScroll()
public void remove(Portlet portlet, int column)
portlet
- the porlet to removecolumn
- the columnpublic void setAdjustForScroll(boolean adjust)
adjust
- true to adjustpublic void setAutoScroll(boolean autoScroll)
autoScroll
- true to enable auto scrollScrollSupport
public void setColumnWidth(int colIndex, double width)
colIndex
- the column indexwidth
- the column widthpublic void setSpacing(int spacing)
spacing
- the spacing in pixelsprotected DragListener createDragListener()
protected void onDragCancel(DragEvent event)
protected void onDragEnd(DragEvent de)
protected void onDragLeave(DragEvent de)
protected void onDragMove(DragEvent de)
protected void onDragStart(DragEvent de)
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class Component
target
- the target elementindex
- the insert location
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |