org.openmdx.portal.servlet.view
Class Grid

java.lang.Object
  extended by org.openmdx.portal.servlet.view.ControlState
      extended by 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

Field Summary
static short ALIGNMENT_NARROW
           
static short ALIGNMENT_WIDE
           
static int COLUMN_TYPE_BOOLEAN
           
static int COLUMN_TYPE_DATE
           
static int COLUMN_TYPE_NONE
           
static int COLUMN_TYPE_NUMBER
           
static int COLUMN_TYPE_STRING
           
protected  DataBinding_1_0 dataBinding
           
static int MAX_COLUMNS
           
static int MAX_PAGE_SIZE
           
static String PROPERTY_PAGE_ALIGNMENT
           
static String PROPERTY_SHOW_ROWS_ON_INIT
           
 
Fields inherited from class org.openmdx.portal.servlet.view.ControlState
control, view
 
Constructor Summary
Grid(GridControl control, ObjectView view, String lookupType)
           
 
Method Summary
 Action getAddObjectAction()
           
 short getAlignment()
           
 Action getAlignmentAction()
           
 Action getColumnOrderAddAction(String forFeature)
           
 Action getColumnOrderSetAction(String forFeature)
           
 Filter getCurrentFilter()
           
 String getCurrentFilterValues()
           
 int getCurrentPage()
           
 Filter getFilter(String filterName)
           
protected abstract  List getFilteredObjects(Filter filter)
           
 Filter[] getFilters()
           
 Action getFirstPageAction()
           
 GridControl getGridControl()
           
 int getLastPage()
           
 Action getMultiDeleteAction()
           
 Action[] getObjectCreator()
           
 Action[] getObjectCreators()
           
 short getOrder(String feature)
           
 Action getPageNextAction(boolean isEnabled)
           
 Action getPageNextFastAction(boolean isEnabled)
           
 Action getPagePreviousAction(boolean isEnabled)
           
 Action getPagePreviousFastAction(boolean isEnabled)
           
 int getPageSize()
           
static int getPageSizeParameter(Map parameterMap)
           
 Action getRemoveObjectAction()
           
 Object[] getRow()
           
 Action getSaveAction()
           
 Action getSelectFilterAction(Filter filter)
           
 Action getSetCurrentFilterAsDefaultAction()
           
 Action getSetShowGridContentOnInitAction()
           
 boolean getShowRows()
           
 Object[] getTemplateRow()
           
protected  String getWildcardFilterValue(String filterValue, ApplicationContext application)
           
 void refresh(boolean refreshData)
           
 void selectFilter(String filterName, String filterValues)
           
 void setAlignment(short alignment)
           
 void setColumnFilter(String filterName, String filterValues, boolean add, int newPageSize)
           
 void setCurrentFilterAsDefault()
           
 void setFilter(String filterName, Filter filter)
           
 void setOrder(String feature, short order, boolean add)
           
 void setPage(int newPage, int newPageSize)
           
 void setShowGridContentOnInit(boolean newValue)
           
 void setShowRows(boolean newValue)
           
 boolean showGridContentOnInit()
           
 boolean showRowSelectors()
          Returns true if row selectors (check boxes) should be shown for each grid row.
 
Methods inherited from class org.openmdx.portal.servlet.view.ControlState
getCurrentLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Grid

public Grid(GridControl control,
            ObjectView view,
            String lookupType)
Method Detail

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 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.