Operation |
Details |
private calculateFirstObjectsToDisplay():List extends ValueObjectWrapper> |
Sequential Notes: | Calculates the objects that should be displayed. | |
private calculateNumberOfObjectsPerPage():int |
Sequential Notes: | Returns the number of objects as chosen in the ComboBox cboNumberOfItemsToShow or returns the first Step (default: 10) in the constants if the number has not been chosen yet (e.g. the page is still initializing). @return the numberOfObjectsPerPage | |
private calculateNumberOfPages():int |
Sequential Notes: | Calculates the number of pages that are needed with the currently selected values. @return the number of pages | |
private calculateObjectsForPage( int page):List extends ValueObjectWrapper> |
Sequential Notes: | Calculates the objects that should be displayed on a certain page. | |
private calculatePageForObject( ValueObjectWrapper object):int |
Sequential Notes: | Calculates the page where an object will be displayed. @return the page where the object would be displayed | |
private createPageButton( String value):HtmlCommandButton |
Sequential Notes: | Creates a single PageButton with the given text. @return a PageButton for the Paginator | |
private createPageButtons():ArrayList |
Sequential Notes: | Creates PageButtons for the Paginator. @return List of PageButtons | |
private createSplittedPageButtons():ArrayList |
Sequential Notes: | Create a splitted row of page buttons. @return a row of page buttons | |
protected abstract displayObject( ValueObjectWrapper valueObjectWrapper):ContainerPanelUI |
Sequential Notes: | Instanciates a new single item and adds it to the container for display. @return the ContainerPanelUI in which the new Item is displayed | |
protected displayObjects():void |
Sequential Notes: | Displays all objects that are currently in the list of objects to display. | |
protected getAllObjects():List extends ValueObjectWrapper> |
Sequential |
public getNumberOfSelectedObjects():int |
Sequential Notes: | Returns the number of valueObjects that are currently selected. Author: FrM, 7.11.2007 @return the number of valueObjects that are currently selected | |
public getNumberSelectedObjects():HtmlInputHidden |
Sequential |
protected getObjectsToDisplay():List extends ValueObjectWrapper> |
Sequential |
public getSelectedObjects():List extends ValueObject> |
Sequential Notes: | Returns all valueObjects that are currently selected. @return all valueObjects that are currently selected | |
public ListUI(): |
Sequential Notes: | Default constructor. | |
public ListUI( List extends ValueObjectWrapper> allObjects): |
Sequential Notes: | Public constructor. | |
public ListUI( List extends ValueObjectWrapper> allObjects, String actionMethodForTitle): |
Sequential Notes: | Public constructor. | |
public ListUI( List extends ValueObjectWrapper> allObjects, boolean singleView, String actionMethodForTitle): |
Sequential Notes: | Public constructor. | |
public processAction( ActionEvent event):void |
Sequential Notes: | Action handler for user actions. | |
public processValueChange( ValueChangeEvent event):void |
Sequential Notes: | ValueChange handler for comboBoxes. | |
private refreshPageButtons():void |
Sequential Notes: | Refreshes the page buttons. | |
protected setAllObjects( List extends ValueObjectWrapper> allObjects):void |
Sequential Notes: | Sets all Objects in the lists and initially set the first objects to be displayed. | |
public setNumberSelectedObjects( HtmlInputHidden numberSelectedObjects):void |
Sequential |
private setObjectsToDisplay( int page, List extends ValueObjectWrapper> objectsToDisplay):void |
Sequential Notes: | Sets the objects that should be displayed. This list is displayed be the method displayObjects(). Also sets the current page and disables back and forward buttons if needed. | |
public sortObjectList( Comparator comparator, boolean sortOrderAscending):void |
Sequential Notes: | Sorts the object list. @param sortOrder the sorting order | |