public class DefaultListViewMenuPopupBuilder extends Object implements ListViewMenuPopupBuilder
ListViewHeaderColumnMenuPopupBuilder interface.| Modifier and Type | Field and Description |
|---|---|
protected Comparator<ColumnDescriptor> |
colComparator
The column comparator.
|
protected Menupopup |
headerPopup
The new header popup.
|
protected static String |
LISTVIEW_COLUMN_MENU_ALL_COLUMNS |
protected static String |
LISTVIEW_COLUMN_MENU_HIDECOLUMN
The Constant LISTVIEW_COLUMN_MENU_HIDECOLUMN.
|
protected static String |
LISTVIEW_COLUMN_MENU_OTHERLANGUAGES
The Constant LISTVIEW_COLUMN_MENU_OTHERLANGUAGES.
|
protected static String |
LISTVIEW_COLUMN_MENU_RESET
The Constant LISTVIEW_COLUMN_MENU_RESET.
|
protected static String |
LISTVIEW_COLUMN_MENU_SHOWCOLUMN
The Constant LISTVIEW_COLUMN_MENU_SHOWCOLUMN.
|
static String |
ON_LATER |
| Constructor and Description |
|---|
DefaultListViewMenuPopupBuilder()
Instantiates a new default list view header column menu popup builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllColumnElement(UIListView listView,
Menupopup columnMenuPopup,
int colIndex) |
void |
addAllColumnLogic(UIListView listView,
Menupopup allColumnsMenuPopup,
int colIndex) |
void |
addHideColumnElement(UIListView listView,
int columnIndex)
Adds the hide column element.
|
void |
addLocalizedColumnElement(UIListView listView,
ColumnDescriptor descriptor)
Adds the localized column element.
|
void |
addResetColumnElement(UIListView listView)
Adds the reset column element.
|
void |
addSeparator()
Adds the separator.
|
void |
addShowColumnElement(UIListView listView,
ColumnLayoutComponent mainColumnComponent,
boolean addResetItem)
Adds the show column element.
|
void |
addShowColumnElement(UIListView listView,
int colIndex,
boolean addResetItem)
Adds the show column element.
|
void |
addShowColumnLogic(UIListView listView,
Menupopup hiddenColumnMenuPopup,
int colIndex,
boolean open)
Adds the show column logic.
|
Menupopup |
buildBackgroundColumnMenuPopup(UIListView listView,
ColumnLayoutComponent mainColumnComponent)
Builds menu popup for use in ListView's background column.
|
int |
buildHiddenColumnMenupopup(UIListView listView,
ColumnGroup group,
Menupopup menuPopup,
int colIndex)
Builds the hidden column menupopup.
|
Menupopup |
buildStandardColumnMenuPopup(UIListView listView,
ColumnDescriptor descriptor,
int columnIndex)
Builds the standard column menu popup.
|
protected Menupopup |
createNewMenuPopup(String menuLabel,
Menupopup menuPopup)
Creates the new menu popup attached to
Menupopup object passed as parameter. |
protected Comparator<ColumnDescriptor> |
getColumnComparator()
Gets the column comparator.
|
public static final String ON_LATER
protected static final String LISTVIEW_COLUMN_MENU_HIDECOLUMN
protected static final String LISTVIEW_COLUMN_MENU_OTHERLANGUAGES
protected static final String LISTVIEW_COLUMN_MENU_RESET
protected static final String LISTVIEW_COLUMN_MENU_SHOWCOLUMN
protected static final String LISTVIEW_COLUMN_MENU_ALL_COLUMNS
protected final Menupopup headerPopup
protected Comparator<ColumnDescriptor> colComparator
public DefaultListViewMenuPopupBuilder()
public void addHideColumnElement(UIListView listView, int columnIndex)
columnIndex - the column indexlistView - the list viewpublic void addLocalizedColumnElement(UIListView listView, ColumnDescriptor descriptor)
descriptor - the descriptorpublic void addResetColumnElement(UIListView listView)
public void addSeparator()
public void addShowColumnElement(UIListView listView, ColumnLayoutComponent mainColumnComponent, boolean addResetItem)
mainColumnComponent - the main column componentaddResetItem - the add reset itemlistView - the list viewpublic void addShowColumnElement(UIListView listView, int colIndex, boolean addResetItem)
colIndex - the col indexaddResetItem - the add reset itemlistView - the list viewpublic void addShowColumnLogic(UIListView listView, Menupopup hiddenColumnMenuPopup, int colIndex, boolean open)
hiddenColumnMenuPopup - the hidden column menu popupcolIndex - the col indexopen - true in case of openinglistView - the list viewpublic void addAllColumnElement(UIListView listView, Menupopup columnMenuPopup, int colIndex)
public void addAllColumnLogic(UIListView listView, Menupopup allColumnsMenuPopup, int colIndex)
public Menupopup buildBackgroundColumnMenuPopup(UIListView listView, ColumnLayoutComponent mainColumnComponent)
ListViewMenuPopupBuilderbuildBackgroundColumnMenuPopup in interface ListViewMenuPopupBuildermainColumnComponent - the main column componentpublic int buildHiddenColumnMenupopup(UIListView listView, ColumnGroup group, Menupopup menuPopup, int colIndex)
group - the groupmenuPopup - the menu popupcolIndex - the col indexlistView - the list viewpublic Menupopup buildStandardColumnMenuPopup(UIListView listView, ColumnDescriptor descriptor, int columnIndex)
ListViewMenuPopupBuilderbuildStandardColumnMenuPopup in interface ListViewMenuPopupBuilderdescriptor - the descriptorcolumnIndex - the column indexprotected Menupopup createNewMenuPopup(String menuLabel, Menupopup menuPopup)
Menupopup object passed as parameter.menuLabel - the label for newly created MenumenuPopup - the menu popup object for which newly created menu popup should be attachedprotected Comparator<ColumnDescriptor> getColumnComparator()
Copyright © 2017 SAP SE. All Rights Reserved.