public class MenuItemProviders extends Object
IMenuItemProvider
for menu items that can be
used within a popup menu in the NatTable to execute NatTable specific actions.Constructor and Description |
---|
MenuItemProviders() |
public static NatEventData getNatEventData(org.eclipse.swt.events.SelectionEvent selectionEvent)
Menu
selectionEvent
- on the MenuItem
Menu
public static IMenuItemProvider hideColumnMenuItemProvider()
IMenuItemProvider
that adds the action for executing the
ColumnHideCommand
to a popup menu. This command is intended to hide the current selected
column immediately.IMenuItemProvider
for the MenuItem
that executes the ColumnHideCommand
.
The MenuItem
will be shown with the localized default text configured in NatTable core.public static IMenuItemProvider hideColumnMenuItemProvider(String menuLabel)
IMenuItemProvider
that adds the action for executing the
ColumnHideCommand
to a popup menu. This command is intended to hide the current selected
column immediately.
The MenuItem
will be shown with the given menu label.
menuLabel
- The text that will be showed for the generated MenuItem
IMenuItemProvider
for the MenuItem
that executes the ColumnHideCommand
.public static IMenuItemProvider showAllColumnsMenuItemProvider()
IMenuItemProvider
that adds the action for executing the
ShowAllColumnsCommand
to a popup menu. This command is intended to show all columns of
the NatTable and is used to unhide previous hidden columns.IMenuItemProvider
for the MenuItem
that executes the ShowAllColumnsCommand
.
The MenuItem
will be shown with the localized default text configured in NatTable core.public static IMenuItemProvider showAllColumnsMenuItemProvider(String menuLabel)
IMenuItemProvider
that adds the action for executing the
ShowAllColumnsCommand
to a popup menu. This command is intended to show all columns of
the NatTable and is used to unhide previous hidden columns.
The MenuItem
will be shown with the given menu label.
menuLabel
- The text that will be showed for the generated MenuItem
IMenuItemProvider
for the MenuItem
that executes the ShowAllColumnsCommand
.public static IMenuItemProvider hideRowMenuItemProvider()
IMenuItemProvider
that adds the action for executing the
RowHideCommand
to a popup menu. This command is intended to hide the current selected
row immediately.IMenuItemProvider
for the MenuItem
that executes the RowHideCommand
.
The MenuItem
will be shown with the localized default text configured in NatTable core.public static IMenuItemProvider hideRowMenuItemProvider(String menuLabel)
IMenuItemProvider
that adds the action for executing the
RowHideCommand
to a popup menu. This command is intended to hide the current selected
row immediately.
The MenuItem
will be shown with the given menu label.
menuLabel
- The text that will be showed for the generated MenuItem
IMenuItemProvider
for the MenuItem
that executes the RowHideCommand
.public static IMenuItemProvider showAllRowsMenuItemProvider()
IMenuItemProvider
that adds the action for executing the
ShowAllRowsCommand
to a popup menu. This command is intended to show all rows of
the NatTable and is used to unhide previous hidden rows.IMenuItemProvider
for the MenuItem
that executes the ShowAllRowsCommand
.
The MenuItem
will be shown with the localized default text configured in NatTable core.public static IMenuItemProvider showAllRowsMenuItemProvider(String menuLabel)
IMenuItemProvider
that adds the action for executing the
ShowAllRowsCommand
to a popup menu. This command is intended to show all rows of
the NatTable and is used to unhide previous hidden rows.
The MenuItem
will be shown with the given menu label.
menuLabel
- The text that will be showed for the generated MenuItem
IMenuItemProvider
for the MenuItem
that executes the ShowAllRowsCommand
.public static IMenuItemProvider autoResizeColumnMenuItemProvider()
public static IMenuItemProvider autoResizeColumnMenuItemProvider(String menuLabel)
public static IMenuItemProvider autoResizeRowMenuItemProvider()
public static IMenuItemProvider autoResizeRowMenuItemProvider(String menuLabel)
public static IMenuItemProvider autoResizeAllSelectedColumnMenuItemProvider()
public static IMenuItemProvider autoResizeAllSelectedColumnMenuItemProvider(String menuLabel)
public static IMenuItemProvider columnChooserMenuItemProvider()
public static IMenuItemProvider columnChooserMenuItemProvider(String menuLabel)
public static IMenuItemProvider columnStyleEditorMenuItemProvider()
public static IMenuItemProvider columnStyleEditorMenuItemProvider(String menuLabel)
public static IMenuItemProvider renameColumnMenuItemProvider()
public static IMenuItemProvider renameColumnMenuItemProvider(String label)
public static IMenuItemProvider createColumnGroupMenuItemProvider()
public static IMenuItemProvider createColumnGroupMenuItemProvider(String menuLabel)
public static IMenuItemProvider ungroupColumnsMenuItemProvider()
public static IMenuItemProvider ungroupColumnsMenuItemProvider(String menuLabel)
public static IMenuItemProvider inspectLabelsMenuItemProvider()
public static IMenuItemProvider categoriesBasedColumnChooserMenuItemProvider()
public static IMenuItemProvider categoriesBasedColumnChooserMenuItemProvider(String menuLabel)
public static IMenuItemProvider clearAllFiltersMenuItemProvider()
public static IMenuItemProvider clearAllFiltersMenuItemProvider(String menuLabel)
public static IMenuItemProvider clearToggleFilterRowMenuItemProvider()
public static IMenuItemProvider clearToggleFilterRowMenuItemProvider(String menuLabel)
public static IMenuItemProvider stateManagerMenuItemProvider()
IMenuItemProvider
that adds the action for executing the
DisplayPersistenceDialogCommand
to a popup menu. This command is intended to open the
DisplayPersistenceDialog for managing NatTable states (also called view management).IMenuItemProvider
for the MenuItem
that executes the
DisplayPersistenceDialogCommand
The MenuItem
will be shown with the localized default text configured in NatTable core.public static IMenuItemProvider stateManagerMenuItemProvider(String menuLabel)
IMenuItemProvider
that adds the action for executing the
DisplayPersistenceDialogCommand
to a popup menu. This command is intended to open the
DisplayPersistenceDialog for managing NatTable states (also called view management).
The MenuItem
will be shown with the given menu label.
menuLabel
- The text that will be showed for the generated MenuItem
IMenuItemProvider
for the MenuItem
that executes the
DisplayPersistenceDialogCommand
The MenuItem
will be shown with the localized default text configured in NatTable core.public static IMenuItemProvider separatorMenuItemProvider()
IMenuItemProvider
for adding a separator to the popup menu.Copyright © 2013. All Rights Reserved.