public class PortalLayoutContainer extends CssFloatLayoutContainer implements PortalValidateDropEvent.HasPortalValidateDropHandlers, PortalDropEvent.HasPortalDropHandlers
| Modifier and Type | Class and Description |
|---|---|
static interface |
PortalLayoutContainer.PortalLayoutAppearance |
CssFloatLayoutContainer.CssFloatData, CssFloatLayoutContainer.CssFloatLayoutAppearanceUIObject.DebugIdImpl, UIObject.DebugIdImplEnabledInsertPanel.ForIsWidgetHasWidgets.ForIsWidgetDEBUG_ID_PREFIX| Constructor and Description |
|---|
PortalLayoutContainer(int numColumns) |
PortalLayoutContainer(PortalLayoutContainer.PortalLayoutAppearance appearance,
int numColumns) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Portlet portlet,
int column)
Adds a portlet to the portal.
|
HandlerRegistration |
addDropHandler(PortalDropEvent.PortalDropHandler handler)
Adds a
PortalDropEvent.PortalDropHandler handler for PortalDropEvent events. |
HandlerRegistration |
addValidateDropHandler(PortalValidateDropEvent.PortalValidateDropHandler handler)
Adds a
PortalValidateDropEvent.PortalValidateDropHandler handler for PortalValidateDropEvent events. |
AutoScrollSupport |
getAutoScrollSupport()
Returns the scroll support instance.
|
int |
getColumnCount() |
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.
|
int |
getSpacing()
Returns the spacing between portlets.
|
VerticalLayoutContainer |
getWidget(int index) |
void |
insert(IsWidget w,
int beforeIndex) |
void |
insert(IsWidget w,
int beforeIndex,
CssFloatLayoutContainer.CssFloatData layoutData) |
void |
insert(Portlet portlet,
int index,
int column)
Inserts a portlet.
|
boolean |
isAutoScroll()
Returns true if auto scroll is enabled (defaults to true).
|
void |
remove(Portlet portlet,
int column)
Removes a portlet from the portal.
|
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).
|
add, addScrollHandler, getScrollSupport, getStyleFloat, isAdjustForScroll, setAdjustForScroll, setScrollSupport, setStyleFloatinsertforceLayout, isLayoutRunning, isOrWasLayoutRunning, onResizeadd, add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, removeaddBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disableEvents, enableEvents, fireEvent, focus, getData, getElement, getFocusSupport, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getStateId, getToolTip, hide, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, onBrowserEvent, removeHandler, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPagePosition, setPixelSize, setPosition, setShadow, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, show, sync, syncSize, unmaskaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEventsequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddgetWidgetIndexgetWidgetCount, getWidgetIndex, remove@UiConstructor public PortalLayoutContainer(int numColumns)
public PortalLayoutContainer(PortalLayoutContainer.PortalLayoutAppearance appearance, int numColumns)
public AutoScrollSupport getAutoScrollSupport()
@UiChild(tagname="portlet") public void add(Portlet portlet, int column)
portlet - the portlet to addcolumn - the column to insert intopublic HandlerRegistration addValidateDropHandler(PortalValidateDropEvent.PortalValidateDropHandler handler)
PortalValidateDropEvent.HasPortalValidateDropHandlersPortalValidateDropEvent.PortalValidateDropHandler handler for PortalValidateDropEvent events.addValidateDropHandler in interface PortalValidateDropEvent.HasPortalValidateDropHandlershandler - the handlerpublic HandlerRegistration addDropHandler(PortalDropEvent.PortalDropHandler handler)
PortalDropEvent.HasPortalDropHandlersPortalDropEvent.PortalDropHandler handler for PortalDropEvent events.addDropHandler in interface PortalDropEvent.HasPortalDropHandlershandler - the handlerpublic int getColumnCount()
public int getPortletColumn(Portlet portlet)
portlet - the portletpublic int getPortletIndex(Portlet portlet)
portlet - the portletpublic int getSpacing()
public VerticalLayoutContainer getWidget(int index)
getWidget in interface IndexedPanelgetWidget in class Containerpublic void insert(IsWidget w, int beforeIndex)
insert in interface InsertPanel.ForIsWidgetinsert in class InsertResizeContainerpublic void insert(IsWidget w, int beforeIndex, CssFloatLayoutContainer.CssFloatData layoutData)
insert in class CssFloatLayoutContainerpublic 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 setAutoScroll(boolean autoScroll)
autoScroll - true to enable auto scrollAutoScrollSupportpublic void setColumnWidth(int colIndex,
double width)
colIndex - the column indexwidth - the column widthpublic void setSpacing(int spacing)
spacing - the spacing in pixelsCopyright © 2012. All Rights Reserved.