|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.grid.TableColumnChooserPopupMenuCustomizer com.jidesoft.pivot.AggregateTableColumnChooserPopupMenuCustomizer
public class AggregateTableColumnChooserPopupMenuCustomizer
A AggregateTableColumnChooserPopupMenuCustomizer
to add menu items related to show or hide the columns
to a popup menu just for AggregateTable and AggregateTablePane. To use it, you can use the code like this.
TableHeaderPopupMenuInstaller installer = new TableHeaderPopupMenuInstaller(aggregateTable)
installer.addTableHeaderPopupMenuCustomizer(new AggregateTableColumnChooserPopupMenuCustomizer());
Field Summary |
---|
Fields inherited from class com.jidesoft.grid.TableColumnChooserPopupMenuCustomizer |
---|
_locale, CLIENT_PROPERTY_CLICK_COLUMN_INDEX, CONTEXT_MENU_HIDE, CONTEXT_MENU_MORE, CONTEXT_MENU_OTHER_COLUMNS, CONTEXT_MENU_RESET_COLUMNS, CONTEXT_MENU_SHOW_ALL |
Constructor Summary | |
---|---|
AggregateTableColumnChooserPopupMenuCustomizer()
|
Method Summary | |
---|---|
void |
customizePopupMenu(JTableHeader header,
JPopupMenu popup,
int clickingColumn)
The method generates the context menu items by clickingColumn. |
protected String |
getDisplayColumnName(JTable table,
int columnIndex)
Gets the display column name to be displayed on the popup menu. |
protected String |
getResourceString(String key)
Gets the localized string from resource bundle. |
protected void |
hideColumn(JTable table,
int columnIndex,
Object columnIdentifier)
Calls to AggregateTableUtils.hideColumn to hide the column. |
protected void |
showAllColumns(JTable table,
AggregateTablePane pane)
|
protected void |
showColumn(JTable table,
int columnIndex,
Object columnIdentifier)
Calls to AggregateTableUtils.showColumn to show the column. |
Methods inherited from class com.jidesoft.grid.TableColumnChooserPopupMenuCustomizer |
---|
createTableColumnChooserDialog, getColumnCount, getDisplayColumnNames, getFavoriteColumns, getFixedColumns, getHiddenColumns, getIdentifier, hideColumn, setDisplayColumnNames, setFavoriteColumns, setFixedColumns, setHiddenColumns, showAllColumns, showColumn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregateTableColumnChooserPopupMenuCustomizer()
Method Detail |
---|
protected String getDisplayColumnName(JTable table, int columnIndex)
getDisplayColumnName
in class TableColumnChooserPopupMenuCustomizer
table
- the tablecolumnIndex
- the inner column index indicating the order in PivotField
public void customizePopupMenu(JTableHeader header, JPopupMenu popup, int clickingColumn)
for (int i = 0; i < popup.getComponentCount(); i++) {
if (CONTEXT_MENU_HIDE.equals(popup.getComponent(i).getName())) {
popup.remove(popup.getComponent(i));
}
}
customizePopupMenu
in interface TableHeaderPopupMenuCustomizer
customizePopupMenu
in class TableColumnChooserPopupMenuCustomizer
header
- the table headerpopup
- the popup menu to be displayedclickingColumn
- the column index clickedprotected void showColumn(JTable table, int columnIndex, Object columnIdentifier)
showColumn
in class TableColumnChooserPopupMenuCustomizer
table
- the tablecolumnIndex
- the model column index.columnIdentifier
- the column identifierprotected void hideColumn(JTable table, int columnIndex, Object columnIdentifier)
table
- the tablecolumnIndex
- the model column index.columnIdentifier
- the column identifierprotected String getResourceString(String key)
getResourceString
in class TableColumnChooserPopupMenuCustomizer
key
- the resource string key
protected void showAllColumns(JTable table, AggregateTablePane pane)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |