Class PortalPosition
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.layout.PortalPosition
- All Implemented Interfaces:
HasHandlers
Represents the position of a
Portlet
within a PortalLayout
, indicating the column, row, and position within the row.-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The column number occupied by aPortlet
within aPortalLayout
.static PortalPosition
getOrCreateRef
(JavaScriptObject jsObj) int
The position occupied by aPortlet
within aPortalLayout
row (generally 0, unless there is more than one Portlet in the row).int
The row number occupied by aPortlet
within aPortalLayout
column.setColNum
(int colNum) The column number occupied by aPortlet
within aPortalLayout
.setPosition
(int position) The position occupied by aPortlet
within aPortalLayout
row (generally 0, unless there is more than one Portlet in the row).setRowNum
(int rowNum) The row number occupied by aPortlet
within aPortalLayout
column.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
PortalPosition
public PortalPosition() -
PortalPosition
-
-
Method Details
-
getOrCreateRef
-
setColNum
The column number occupied by aPortlet
within aPortalLayout
.- Parameters:
colNum
- New colNum value. Default value is 0- Returns:
PortalPosition
instance, for chaining setter calls
-
getColNum
public int getColNum()The column number occupied by aPortlet
within aPortalLayout
.- Returns:
- Current colNum value. Default value is 0
-
setPosition
The position occupied by aPortlet
within aPortalLayout
row (generally 0, unless there is more than one Portlet in the row).- Parameters:
position
- New position value. Default value is 0- Returns:
PortalPosition
instance, for chaining setter calls
-
getPosition
public int getPosition()The position occupied by aPortlet
within aPortalLayout
row (generally 0, unless there is more than one Portlet in the row).- Returns:
- Current position value. Default value is 0
-
setRowNum
The row number occupied by aPortlet
within aPortalLayout
column.- Parameters:
rowNum
- New rowNum value. Default value is 0- Returns:
PortalPosition
instance, for chaining setter calls
-
getRowNum
public int getRowNum()The row number occupied by aPortlet
within aPortalLayout
column.- Returns:
- Current rowNum value. Default value is 0
-