|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.Control com.cc.framework.ui.control.ListControl
Base class for list controls
Nested Class Summary | |
protected static class |
ListControl.RowFilter
Simple Row Filter |
Field Summary | |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class com.cc.framework.ui.control.Control |
log |
Constructor Summary | |
ListControl()
Constructor for ListControl |
Method Summary | |
boolean |
allowAjaxRendering()
The list control can be sent back in an AJAX response delta stream in most cases. |
java.lang.String |
getAjaxId()
Returns the AJAX container id of the control or null when
the control is not AJAX relevant |
abstract int |
getCellPadding()
Returns the cell padding for the list cells |
abstract int |
getCellSpacing()
Returns the cell spacing for the list cells |
abstract ColumnDesignModel[] |
getColumns()
Returns an Array with all columns. |
abstract int |
getCurrentPage()
Returns the number of the current page which is displayed. |
abstract java.lang.String[] |
getDetailText()
Returns the detail text which is displayed in the caption in the format "3 to 10 from 2000" |
abstract java.lang.String |
getEmptyText()
A text that is output in the body of the list element if there are no lines available (size() == 0) |
abstract ImageModel |
getImage()
Returns the image for the frames title |
abstract InnerFrame[] |
getInnerFrames(java.lang.Object layoutHint)
Retrieves a list of inner frames |
abstract LineIterator |
getLineIterator(boolean positioned)
Creates a line iterator |
abstract int |
getMinRowCount()
Returns the minimal number of rows on the page. |
int |
getNavigationPosition()
Returns a bit combination with the position where to create the page navigation elements of the list control |
abstract int |
getPageButtons()
Returns the number of page buttons. |
abstract LineIterator |
getPageLineIterator()
Creates a line iterator for the current page |
abstract java.lang.Object |
getRowFromKey(java.lang.String rowkey)
Retrieves the row bean for the given key |
abstract int |
getRowsPerPage()
Returns the number of rows on the page. |
abstract java.lang.String |
getScrollHeight()
Retrieves the height of the scroll container |
abstract SelectMode |
getSelectMode()
Return the selection mode of the list. |
abstract SortOrder |
getSortOrder(java.lang.String column)
Returns the sort order for the specified column. |
abstract OrientationType |
getTabOrientation()
Retrieves the tabulator orientation |
abstract java.lang.String |
getTitle()
Returns the Title |
abstract int |
getTotalPages()
Returns the total number of pages. |
abstract int |
getTotalRowCount()
Returns the Number of total Rows in the data model |
ColumnDesignModel[] |
getVisibleColumns()
Returns an Array with all columns that are visible to the user. |
void |
onAdd(ControlRequestContext ctx,
java.lang.String key)
Default handler for the Add Event |
void |
onCellClick(ControlRequestContext ctx,
java.lang.String column,
java.lang.String key)
Default handler for the CellClick Event |
void |
onCheck(ControlRequestContext ctx,
java.lang.String key,
SelectMode mode,
boolean check)
Default handler for the Check Event |
void |
onCheckAll(ControlRequestContext ctx,
SelectMode mode,
boolean check)
Default handler for the CheckAll Event |
void |
onCheckColumn(ControlRequestContext ctx,
java.lang.String column,
boolean check)
Default handler for the CheckColumn Event |
void |
onCollapse(ControlRequestContext ctx,
java.lang.String key)
Default Handler for the Collapse Event |
void |
onCreate(ControlRequestContext ctx)
Default handler for the Create Event |
void |
onDelete(ControlRequestContext ctx,
java.lang.String key)
Default handler for the Delete Event |
void |
onDrilldown(ControlRequestContext ctx,
java.lang.String key)
Default handler for the Drilldown Event |
void |
onEdit(ControlRequestContext ctx,
java.lang.String key)
Default handler for the Edit Event |
void |
onExpand(ControlRequestContext ctx,
java.lang.String key)
Default Handler for the Expand Event |
void |
onExpandEx(ControlRequestContext ctx,
java.lang.String key)
Default Handler for the ExpandEx Event |
void |
onExportList(ControlRequestContext ctx)
Default handler for the ExportList Event |
void |
onPage(ControlRequestContext ctx,
int newPage)
Default handler for the Page Event |
void |
onPrintList(ControlRequestContext ctx)
Default handler for the PrintList Event |
void |
onRefresh(ControlRequestContext ctx)
Default handler for the Refresh Event |
void |
onSelect(ControlRequestContext ctx,
java.lang.String key)
Default handler for the Select Event |
void |
onSort(ControlRequestContext ctx,
java.lang.String column,
SortOrder direction)
Default handler for the Sort Event |
protected void |
setCheckboxValue(RequestContext ctx,
ControlValuePath path,
java.lang.Object rowbean,
java.lang.String property,
boolean checked,
SelectMode selectmode)
This method is called to set the value of a checkbox column |
protected void |
setControlValue(RequestContext ctx,
ControlValuePath path,
java.lang.Object rowbean,
java.lang.String property,
java.lang.String[] values)
This method sets the value of a nested control |
protected void |
setRadioValue(RequestContext ctx,
ControlValuePath path,
java.lang.Object rowbean,
java.lang.String property,
java.lang.String value)
This method is called to set the value of a radio button column |
void |
setValue(RequestContext ctx,
ControlValuePath path,
java.lang.String[] values)
This method is called to set the value of the data model |
abstract boolean |
showFrame()
Returns true if the frame should be painted |
abstract boolean |
showHeader()
Returns true if the header should be painted |
Methods inherited from class com.cc.framework.ui.control.Control |
addButton, execute, execute, execute, execute, execute, execute, execute, getAction, getButtons, getControlName, getDataModel, getDesignModel, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStateModel, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, show, showButton, synchronizeState, synchronizeState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
Constructor Detail |
public ListControl()
Method Detail |
public abstract java.lang.String getTitle()
public abstract java.lang.String[] getDetailText()
public abstract java.lang.String getEmptyText()
public abstract int getTotalPages()
public abstract int getTotalRowCount()
public abstract int getCurrentPage()
public abstract int getRowsPerPage()
public abstract int getMinRowCount()
public abstract int getPageButtons()
public abstract boolean showFrame()
public abstract boolean showHeader()
public abstract int getCellSpacing()
public abstract int getCellPadding()
public abstract java.lang.String getScrollHeight()
public java.lang.String getAjaxId()
null
when
the control is not AJAX relevant
getAjaxId
in class Control
null
public boolean allowAjaxRendering()
allowAjaxRendering
in class Control
true
when the control can be rendered in
an AJAX responseControl.allowAjaxRendering()
public int getNavigationPosition()
NavigationPosition
public abstract LineIterator getLineIterator(boolean positioned)
positioned
- if set to true
the method returns a iterator
which is positioned on the first line on the current page.
public abstract LineIterator getPageLineIterator()
public abstract InnerFrame[] getInnerFrames(java.lang.Object layoutHint)
layoutHint
- The layout hint that specifies what frames should be selected:
AlignmentType.TOP
- header frames
AlignmentType.BOTTOM
- footer frames
public ColumnDesignModel[] getVisibleColumns()
public abstract ColumnDesignModel[] getColumns()
public abstract SortOrder getSortOrder(java.lang.String column)
column
- The name of the column
public abstract SelectMode getSelectMode()
public abstract java.lang.Object getRowFromKey(java.lang.String rowkey)
rowkey
- The rows unique key
null
public abstract ImageModel getImage()
public abstract OrientationType getTabOrientation()
public void setValue(RequestContext ctx, ControlValuePath path, java.lang.String[] values) throws java.lang.Exception
Control
setValue
in class Control
ctx
- The Action Contextpath
- Path Name of the input elementvalues
- the values to set
java.lang.Exception
- a derived class can throw an exception if the value could not
be setControl.setValue(com.cc.framework.adapter.RequestContext,
com.cc.framework.ui.control.ControlValuePath, java.lang.String[])
protected void setCheckboxValue(RequestContext ctx, ControlValuePath path, java.lang.Object rowbean, java.lang.String property, boolean checked, SelectMode selectmode) throws java.lang.Exception
ctx
- The control action contextpath
- Path Name of the input elementrowbean
- The row beanproperty
- The Column namechecked
- true
if the checkbox is checkedselectmode
- the selection mode of the column
java.lang.Exception
- a derived class can throw an exception if the value could not
be setprotected void setRadioValue(RequestContext ctx, ControlValuePath path, java.lang.Object rowbean, java.lang.String property, java.lang.String value) throws java.lang.Exception
ctx
- The control action contextpath
- Path Name of the input elementrowbean
- The row beanproperty
- The Column namevalue
- the radio button value
java.lang.Exception
- a derived class can throw an exception if the value could not
be setprotected void setControlValue(RequestContext ctx, ControlValuePath path, java.lang.Object rowbean, java.lang.String property, java.lang.String[] values) throws java.lang.Exception
ctx
- The Control Action Contextpath
- Path Name of the input elementrowbean
- The row beanproperty
- The Column namevalues
- the value to set
java.lang.Exception
- a derived class can throw an exception if the value could not
be setpublic void onExpandEx(ControlRequestContext ctx, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onExpand(ControlRequestContext ctx, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onCollapse(ControlRequestContext ctx, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onCreate(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurspublic void onRefresh(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurspublic void onPage(ControlRequestContext ctx, int newPage) throws java.lang.Exception
ctx
- ControlRequestContextnewPage
- Number of the new Page
java.lang.Exception
- is thrown when an error occurspublic void onDrilldown(ControlRequestContext ctx, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onCellClick(ControlRequestContext ctx, java.lang.String column, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextcolumn
- Name of the Column (Name is the Property)key
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onAdd(ControlRequestContext ctx, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onEdit(ControlRequestContext ctx, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onDelete(ControlRequestContext ctx, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onSelect(ControlRequestContext ctx, java.lang.String key) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Row
java.lang.Exception
- is thrown when an error occurspublic void onCheck(ControlRequestContext ctx, java.lang.String key, SelectMode mode, boolean check) throws java.lang.Exception
ctx
- ControlRequestContextkey
- Unique Id as generated by the data model to identify the Rowmode
- SelectModecheck
- true if checked
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic void onCheckAll(ControlRequestContext ctx, SelectMode mode, boolean check) throws java.lang.Exception
ctx
- ControlRequestContextmode
- SelectModecheck
- true if checked
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic void onCheckColumn(ControlRequestContext ctx, java.lang.String column, boolean check) throws java.lang.Exception
ctx
- ControlRequestContextcolumn
- Name of the Column (Name is the Property)check
- true if checked
java.lang.Exception
- Indicates an error while iterating and executing the
algorithmpublic void onSort(ControlRequestContext ctx, java.lang.String column, SortOrder direction) throws java.lang.Exception
ctx
- ControlRequestContextcolumn
- Name of the Columndirection
- SortOrder
java.lang.Exception
- is thrown when an error occurspublic void onExportList(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurspublic void onPrintList(ControlRequestContext ctx) throws java.lang.Exception
ctx
- ControlRequestContext
java.lang.Exception
- is thrown when an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |