|
|||||||||
| 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<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.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. |
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. |
void |
insert(Portlet portlet,
int index,
int column)
Inserts a portlet. |
void |
remove(Portlet portlet,
int column)
Removes a portlet from the portal. |
void |
setAjustForScroll(boolean adjust)
True to adjust the layout for a vertical scroll bar (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.Container |
|---|
disable, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getLayoutTarget, getWidget, indexOf, iterator, removeAll, scrollIntoView |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, 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 |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Portal(int numColumns)
numColumns - the number of columns| Method 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 int getSpacing()
public void insert(Portlet portlet,
int index,
int column)
portlet - the portlet to addindex - the insert indexcolumn - the column to insert into
public void remove(Portlet portlet,
int column)
portlet - the porlet to removecolumn - the columnpublic void setAjustForScroll(boolean adjust)
adjust - true to adjust
public void setColumnWidth(int colIndex,
double width)
colIndex - the column indexwidth - the column widthpublic void setSpacing(int spacing)
spacing - the spacing in pixels
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||