org.openmdx.portal.servlet.view
Class Grid
java.lang.Object
org.openmdx.portal.servlet.view.ControlState
org.openmdx.portal.servlet.view.Grid
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CompositeGrid, ReferenceGrid
public abstract class Grid
- extends ControlState
- implements Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_PAGE_SIZE
public static final int MAX_PAGE_SIZE
- See Also:
- Constant Field Values
COLUMN_TYPE_NONE
public static final int COLUMN_TYPE_NONE
- See Also:
- Constant Field Values
COLUMN_TYPE_STRING
public static final int COLUMN_TYPE_STRING
- See Also:
- Constant Field Values
COLUMN_TYPE_DATE
public static final int COLUMN_TYPE_DATE
- See Also:
- Constant Field Values
COLUMN_TYPE_NUMBER
public static final int COLUMN_TYPE_NUMBER
- See Also:
- Constant Field Values
COLUMN_TYPE_BOOLEAN
public static final int COLUMN_TYPE_BOOLEAN
- See Also:
- Constant Field Values
ALIGNMENT_NARROW
public static final short ALIGNMENT_NARROW
- See Also:
- Constant Field Values
ALIGNMENT_WIDE
public static final short ALIGNMENT_WIDE
- See Also:
- Constant Field Values
MAX_COLUMNS
public static final int MAX_COLUMNS
- See Also:
- Constant Field Values
PROPERTY_SHOW_ROWS_ON_INIT
public static final String PROPERTY_SHOW_ROWS_ON_INIT
- See Also:
- Constant Field Values
PROPERTY_PAGE_ALIGNMENT
public static final String PROPERTY_PAGE_ALIGNMENT
- See Also:
- Constant Field Values
dataBinding
protected final DataBinding_1_0 dataBinding
Grid
public Grid(GridControl control,
ObjectView view,
String lookupType)
getGridControl
public GridControl getGridControl()
getShowRows
public boolean getShowRows()
setShowRows
public void setShowRows(boolean newValue)
getAddObjectAction
public Action getAddObjectAction()
getRemoveObjectAction
public Action getRemoveObjectAction()
getObjectCreators
public Action[] getObjectCreators()
- Returns:
- Returns the objectCreators.
getTemplateRow
public Object[] getTemplateRow()
getObjectCreator
public Action[] getObjectCreator()
getMultiDeleteAction
public Action getMultiDeleteAction()
getSaveAction
public Action getSaveAction()
getPageNextAction
public Action getPageNextAction(boolean isEnabled)
getPagePreviousAction
public Action getPagePreviousAction(boolean isEnabled)
getPageNextFastAction
public Action getPageNextFastAction(boolean isEnabled)
getPagePreviousFastAction
public Action getPagePreviousFastAction(boolean isEnabled)
getSetCurrentFilterAsDefaultAction
public Action getSetCurrentFilterAsDefaultAction()
refresh
public void refresh(boolean refreshData)
- Specified by:
refresh in class ControlState
setCurrentFilterAsDefault
public void setCurrentFilterAsDefault()
showRowSelectors
public boolean showRowSelectors()
- Returns true if row selectors (check boxes) should be shown for each grid
row. This allows the user to select a row of the grid.
The method returns true, if
- lookupType != null and the grid contains objects which are instance of lookupType
false otherwise.
getRow
public Object[] getRow()
setPage
public void setPage(int newPage,
int newPageSize)
getCurrentPage
public int getCurrentPage()
getLastPage
public int getLastPage()
getPageSize
public int getPageSize()
getFilteredObjects
protected abstract List getFilteredObjects(Filter filter)
selectFilter
public void selectFilter(String filterName,
String filterValues)
getWildcardFilterValue
protected String getWildcardFilterValue(String filterValue,
ApplicationContext application)
setColumnFilter
public void setColumnFilter(String filterName,
String filterValues,
boolean add,
int newPageSize)
setOrder
public void setOrder(String feature,
short order,
boolean add)
getOrder
public short getOrder(String feature)
getCurrentFilter
public Filter getCurrentFilter()
getCurrentFilterValues
public String getCurrentFilterValues()
getFirstPageAction
public Action getFirstPageAction()
getSelectFilterAction
public Action getSelectFilterAction(Filter filter)
getFilters
public Filter[] getFilters()
getFilter
public Filter getFilter(String filterName)
setFilter
public void setFilter(String filterName,
Filter filter)
getColumnOrderSetAction
public Action getColumnOrderSetAction(String forFeature)
getColumnOrderAddAction
public Action getColumnOrderAddAction(String forFeature)
setShowGridContentOnInit
public void setShowGridContentOnInit(boolean newValue)
getAlignment
public short getAlignment()
setAlignment
public void setAlignment(short alignment)
showGridContentOnInit
public boolean showGridContentOnInit()
getAlignmentAction
public Action getAlignmentAction()
getSetShowGridContentOnInitAction
public Action getSetShowGridContentOnInitAction()
getPageSizeParameter
public static int getPageSizeParameter(Map parameterMap)
This software is published under the BSD license. Copyright © 2006-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.