|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.ClientHandlerImp com.cc.framework.ui.model.imp.ControlDesignModelImp com.cc.framework.ui.model.imp.ListDesignModelImp
Designmodel for the ListControl
Field Summary | |
private ButtonContainer |
buttons
The users permission which is necessary to see any buttons |
private int |
cellPadding
Cell padding factor (-1 = Painter default) |
private int |
cellSpacing
Cell spacing factor (-1 = Painter default) |
private ColumnContainer |
columns
The buffer with the columns of the list control |
private java.lang.String |
emptyText
Text to display if a empty list is shown. |
private java.util.ArrayList |
frames
Inner Frames |
private int |
headerHeight
The height of the header. |
private ImageModel |
image
The optional title image |
private int |
minRowCount
Number of minimal displayed lines |
private int |
pageButtons
The number of paging buttons to show |
private int |
rowCount
Number of displayed lines. |
private int |
rowHeight
Height of a row. |
private java.lang.String |
scrollHeight
The height of the scroll container |
private SelectMode |
selectMode
The selection mode for optional checkboxes. |
private static long |
serialVersionUID
Serial Version UID |
private boolean |
showFrame
Enables or disables the lists frame |
private boolean |
showHeader
This flag indicates if the header should be painted |
private OrientationType |
tabOrientation
Specifies the tabulator orientation |
private java.lang.String |
title
The caption of the listcontrol |
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
|
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
|
Constructor Summary | |
ListDesignModelImp()
Constructor for ListDesignModelImp |
Method Summary | |
void |
addColumn(ColumnDesignModel column)
Adds a new column definition to the ListControl |
void |
addInnerFrame(InnerFrame frame)
Adds a inner frame to the List |
Permission |
getButtonPermission(ControlButton button)
Retrieves the permission for the given button |
int |
getCellPadding()
Returns the cell padding for the list cells |
int |
getCellSpacing()
Returns the cell spacing for the list cells |
ColumnDesignModel |
getColumn(int index)
Returns the column with the given index |
ColumnDesignModel[] |
getColumns()
Returns an array with all column definitions |
java.lang.String |
getEmptyText()
A text that is output in the body of the list element if there are no lines available |
int |
getHeaderHeight()
Returns the height of the header (pixel) |
ImageModel |
getImage()
Returns the image for the frames title |
InnerFrame[] |
getInnerFrames(Principal principal,
java.lang.Object layoutHint)
Retrieves a list of only the inner frames that are matching the given layout hint |
int |
getMinRowCount()
Returns the minimal number of rows which should be displayed(rendered) by the control. |
int |
getPageButtons()
Returns the number of page buttons to displayed. |
int |
getRowCount()
Returns the number of rows which should be displayed(rendered) by the control. |
int |
getRowHeight()
Returns the height of a row (pixel) |
java.lang.String |
getScrollHeight()
Returns the height of the scroll container |
SelectMode |
getSelectMode()
Specifies the selection mode of the list. |
OrientationType |
getTabOrientation()
Retrieves the tabulator orientation |
java.lang.String |
getTitle()
Returns the Title |
void |
removeColumn(ColumnDesignModel column)
Removes a column |
void |
setButtonPermission(ControlButton button,
Permission permission)
Sets whether a command button should be displayed by specifying an Access Control List. |
void |
setCellPadding(int padding)
Sets the cell padding for the list cells |
void |
setCellSpacing(int spacing)
Sets the cell spacing for the list cells |
void |
setCreateButtonPermission(Permission permission)
Deprecated. use setButtonPermission(ControlButton.CREATE, permission) |
void |
setEmptyText(java.lang.String emptyText)
Sets the text that is output in the body of the list element if there are no lines available |
void |
setImage(ImageModel img)
Sets an image for the frames title |
void |
setMinRowCount(int rows)
This attribute is used to specify the minimum number of lines that are depicted simultaneously. |
void |
setPageButtons(int buttons)
Specifies the number of buttons that should be displayed for direct page navigation. |
void |
setRefreshButtonPermission(Permission permission)
Deprecated. use setButtonPermission(ControlButton.REFRESH, permission) |
void |
setRowCount(int rows)
This attribute is used to specify the maximum number of lines that are depicted simultaneously. |
void |
setScrollHeight(java.lang.String height)
Sets the height of the scroll container |
void |
setSelectMode(SelectMode mode)
Sets the selection mode of the list. |
void |
setShowFrame(boolean show)
Disables the lists frame |
void |
setShowHeader(boolean showHeader)
This flag allows to hide the header within the list. |
void |
setTabOrientation(OrientationType orientation)
Specifies the tabulator orientation: horizontal = from top to bottom vertical = from left to right |
void |
setTitle(java.lang.String title)
Sets the title of the ListControl which is display in the Header |
boolean |
showButton(ControlButton button,
Principal principal)
Checks if the button can be displayed. |
boolean |
showCreateButton(Principal principal)
Deprecated. use showButton(ControlButton.CREATE, principal) |
boolean |
showFrame()
|
boolean |
showHeader()
Returns if the header of the control is suppressed |
boolean |
showRefreshButton(Principal principal)
Deprecated. use showButton(ControlButton.REFRESH, principal) |
int |
size()
Returns the number of columns |
Methods inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp |
addDesignRule, enableAjax, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isAjaxEnabled, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth, show |
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp |
evaluate, getHandler, getHandlers, setHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.ui.model.ControlDesignModel |
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth |
Methods inherited from interface com.cc.framework.ui.model.ClientHandler |
getHandler, getHandlers, setHandler |
Methods inherited from interface com.cc.framework.ui.model.AccessControlled |
getPermission, show |
Methods inherited from interface com.cc.framework.ui.model.ActionBehavior |
isAjaxEnabled |
Methods inherited from interface com.cc.framework.ui.model.AjaxSupport |
enableAjax, isAjaxEnabled |
Field Detail |
private static final long serialVersionUID
private int rowCount
private int minRowCount
private int headerHeight
private int rowHeight
private int cellSpacing
private int cellPadding
private java.lang.String title
private java.lang.String emptyText
private java.lang.String scrollHeight
private SelectMode selectMode
private ButtonContainer buttons
private int pageButtons
private ColumnContainer columns
private boolean showFrame
private ImageModel image
private boolean showHeader
private OrientationType tabOrientation
private java.util.ArrayList frames
Constructor Detail |
public ListDesignModelImp()
Method Detail |
public int getRowCount()
ListDesignModel
getRowCount
in interface ListDesignModel
ListDesignModel.getRowCount()
public void setMinRowCount(int rows)
ListDesignModel
setMinRowCount
in interface ListDesignModel
rows
- Number of linesListDesignModel.setMinRowCount(int)
public int getMinRowCount()
ListDesignModel
getMinRowCount
in interface ListDesignModel
ListDesignModel.getMinRowCount()
public void setRowCount(int rows)
ListDesignModel
setRowCount
in interface ListDesignModel
rows
- Number of linesListDesignModel.setRowCount(int)
public java.lang.String getTitle()
ListDesignModel
getTitle
in interface ListDesignModel
ListDesignModel.getTitle()
public void setTitle(java.lang.String title)
ListDesignModel
setTitle
in interface ListDesignModel
title
- The main title of the controlListDesignModel.setTitle(String)
public java.lang.String getEmptyText()
ListDesignModel
getEmptyText
in interface ListDesignModel
ListDesignModel.getEmptyText()
public void setEmptyText(java.lang.String emptyText)
ListDesignModel
setEmptyText
in interface ListDesignModel
emptyText
- The text that is output in the body of the list element if
there are no lines availableListDesignModel.setEmptyText(String)
public void addColumn(ColumnDesignModel column)
ColumnContainer
addColumn
in interface ColumnContainer
column
- The column definition to addColumnContainer.addColumn(com.cc.framework.ui.model.ColumnDesignModel)
public ColumnDesignModel[] getColumns()
ColumnContainer
getColumns
in interface ColumnContainer
ColumnContainer.getColumns()
public ColumnDesignModel getColumn(int index)
ColumnContainer
getColumn
in interface ColumnContainer
index
- column index
ColumnContainer.getColumn(int)
public void removeColumn(ColumnDesignModel column)
ColumnContainer
removeColumn
in interface ColumnContainer
column
- The column to removeColumnContainer.removeColumn(com.cc.framework.ui.model.ColumnDesignModel)
public int size()
ColumnContainer
size
in interface ColumnContainer
ColumnContainer.size()
public int getHeaderHeight()
ListDesignModel
getHeaderHeight
in interface ListDesignModel
ListDesignModel.getHeaderHeight()
public int getRowHeight()
ListDesignModel
getRowHeight
in interface ListDesignModel
ListDesignModel.getRowHeight()
public SelectMode getSelectMode()
ListDesignModel
getSelectMode
in interface ListDesignModel
ListDesignModel.getSelectMode()
public void setSelectMode(SelectMode mode)
ListDesignModel
setSelectMode
in interface ListDesignModel
mode
- the selection modeListDesignModel.setSelectMode(SelectMode)
public Permission getButtonPermission(ControlButton button)
ButtonContainer
getButtonPermission
in interface ButtonContainer
button
- Button constant
null
ButtonContainer.getButtonPermission(com.cc.framework.ui.control.ControlButton)
public boolean showButton(ControlButton button, Principal principal)
ButtonContainer
showButton
in interface ButtonContainer
button
- The Button to queryprincipal
- The principal object
true
if the button should be displayedButtonContainer.showButton(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Principal)
public void setButtonPermission(ControlButton button, Permission permission)
ButtonContainer
setButtonPermission
in interface ButtonContainer
button
- The Button to querypermission
- PermissionButtonContainer.setButtonPermission(com.cc.framework.ui.control.ControlButton,
com.cc.framework.security.Permission)
public boolean showRefreshButton(Principal principal)
principal
- The principal object
true
if the button should be displayedpublic void setRefreshButtonPermission(Permission permission)
permission
- Permissionpublic boolean showCreateButton(Principal principal)
principal
- The principal object
true
if the button should be displayedpublic void setCreateButtonPermission(Permission permission)
permission
- Permissionpublic int getPageButtons()
ListDesignModel
getPageButtons
in interface ListDesignModel
ListDesignModel.getPageButtons()
public void setPageButtons(int buttons)
ListDesignModel
setPageButtons
in interface ListDesignModel
buttons
- Button countListDesignModel.setPageButtons(int)
public void setShowFrame(boolean show)
ListDesignModel
setShowFrame
in interface ListDesignModel
show
- true
if the lists frame should be shownListDesignModel.setShowFrame(boolean)
public boolean showFrame()
showFrame
in interface ListDesignModel
true
if the frame should be shownListDesignModel.showFrame()
public boolean showHeader()
ListDesignModel
showHeader
in interface ListDesignModel
false
if the header of the control is suppressed;
true
otherwise.ListDesignModel.showHeader()
public void setShowHeader(boolean showHeader)
ListDesignModel
setShowHeader
in interface ListDesignModel
showHeader
- If set to false the header of the control will be suppressedListDesignModel.setShowHeader(boolean)
public int getCellPadding()
ListDesignModel
getCellPadding
in interface ListDesignModel
ListDesignModel.getCellPadding()
public int getCellSpacing()
ListDesignModel
getCellSpacing
in interface ListDesignModel
ListDesignModel.getCellSpacing()
public void setCellPadding(int padding)
ListDesignModel
setCellPadding
in interface ListDesignModel
padding
- Padding factorListDesignModel.setCellPadding(int)
public void setCellSpacing(int spacing)
ListDesignModel
setCellSpacing
in interface ListDesignModel
spacing
- Spacing factorListDesignModel.setCellSpacing(int)
public void addInnerFrame(InnerFrame frame)
FrameContainer
addInnerFrame
in interface FrameContainer
frame
- the inner frame to addFrameContainer.addInnerFrame(com.cc.framework.ui.model.InnerFrame)
public InnerFrame[] getInnerFrames(Principal principal, java.lang.Object layoutHint)
FrameContainer
getInnerFrames
in interface FrameContainer
principal
- The principal object for permission tests. This parameter can
be null
layoutHint
- The layout hint that specifies what frames should be selected:
AlignmentType.TOP
- header frames
AlignmentType.BOTTOM
- footer frames
FrameContainer.getInnerFrames(com.cc.framework.security.Principal, java.lang.Object)
public ImageModel getImage()
FrameContainer
getImage
in interface FrameContainer
FrameContainer.getImage()
public void setImage(ImageModel img)
FrameContainer
setImage
in interface FrameContainer
img
- ImageModelFrameContainer.setImage(com.cc.framework.ui.model.ImageModel)
public void setTabOrientation(OrientationType orientation)
setTabOrientation
in interface ListDesignModel
orientation
- The tabulator orientationpublic OrientationType getTabOrientation()
getTabOrientation
in interface ListDesignModel
public java.lang.String getScrollHeight()
ScrollSupport
getScrollHeight
in interface ScrollSupport
ScrollSupport.getScrollHeight()
public void setScrollHeight(java.lang.String height)
ScrollSupport
setScrollHeight
in interface ScrollSupport
height
- heightScrollSupport.setScrollHeight(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |