Class XViewerCustomMenu
java.lang.Object
org.eclipse.nebula.widgets.xviewer.customize.XViewerCustomMenu
public class XViewerCustomMenu
extends java.lang.Object
Allow for the customization of the xViewer's right-click menus. Full menu can be used or selected Actions accessed
for partial implementation in existing menus
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.jface.action.Action
addComputedColumn
protected org.eclipse.jface.action.Action
averageColumn
protected org.eclipse.jface.action.Action
clearAllFilters
protected org.eclipse.jface.action.Action
clearAllSorting
protected org.eclipse.jface.action.Action
columnMultiEdit
protected org.eclipse.jface.action.Action
copySelected
protected org.eclipse.jface.action.Action
copySelectedCell
protected org.eclipse.jface.action.Action
copySelectedColumnCells
protected org.eclipse.jface.action.Action
filterByColumn
protected org.eclipse.jface.action.Action
filterBySelColumn
protected org.eclipse.jface.action.Action
filterByValue
protected org.eclipse.jface.action.Action
hideColumn
protected org.eclipse.jface.action.Action
removeNonSelected
protected org.eclipse.jface.action.Action
removeSelected
protected org.eclipse.jface.action.Action
showColumn
protected org.eclipse.jface.action.Action
sumColumn
protected org.eclipse.jface.action.Action
tableProperties
(package private) static org.eclipse.jface.viewers.LabelProvider
treeColumnLabelProvider
(package private) static org.eclipse.jface.viewers.ViewerSorter
treeColumnSorter
protected org.eclipse.jface.action.Action
uniqueValues
protected org.eclipse.jface.action.Action
viewLoadingReport
protected org.eclipse.jface.action.Action
viewSelectedCell
protected org.eclipse.jface.action.Action
viewTableReport
protected XViewer
xViewer
-
Constructor Summary
Constructors Constructor Description XViewerCustomMenu()
XViewerCustomMenu(XViewer xViewer)
-
Method Summary
Modifier and Type Method Description void
addCopyViewMenuBlock(org.eclipse.swt.widgets.Menu popupMenu)
void
addFilterMenuBlock(org.eclipse.swt.widgets.Menu popupMenu)
void
createClearAllFiltersMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
void
createClearAllSortingMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
void
createCopyCellsMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
void
createCopyRowsMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
static org.eclipse.jface.action.MenuManager
createEditMenuManager(XViewer xViewer, java.lang.String name, java.util.Collection<org.eclipse.swt.widgets.TreeItem> selectedTreeItems, java.util.Set<org.eclipse.swt.widgets.TreeColumn> editableColumns)
void
createFilterByColumnMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
void
createFilterByValueMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
void
createTableCustomizationMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
void
createViewSelectedCellMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
void
createViewTableReportMenuItem(org.eclipse.swt.widgets.Menu popupMenu)
protected void
handleAddComputedColumn()
protected void
handleAverageColumn()
protected void
handleHideColumn()
protected void
handleShowColumn()
protected void
handleSumColumn()
protected void
handleUniqeValuesColumn()
void
init(XViewer xviewer)
boolean
isHeaderMouseClick()
protected void
setupActions()
protected void
setupMenuForHeader()
void
setupMenuForHeader(org.eclipse.jface.action.MenuManager menuManager)
protected void
setupMenuForTable()
void
setupMenuForTable(org.eclipse.jface.action.MenuManager menuManager)
void
updateEditMenu(org.eclipse.jface.action.MenuManager mm)
-
Field Details
-
xViewer
-
filterByValue
protected org.eclipse.jface.action.Action filterByValue -
filterByColumn
protected org.eclipse.jface.action.Action filterByColumn -
filterBySelColumn
protected org.eclipse.jface.action.Action filterBySelColumn -
clearAllSorting
protected org.eclipse.jface.action.Action clearAllSorting -
clearAllFilters
protected org.eclipse.jface.action.Action clearAllFilters -
tableProperties
protected org.eclipse.jface.action.Action tableProperties -
viewTableReport
protected org.eclipse.jface.action.Action viewTableReport -
columnMultiEdit
protected org.eclipse.jface.action.Action columnMultiEdit -
removeSelected
protected org.eclipse.jface.action.Action removeSelected -
removeNonSelected
protected org.eclipse.jface.action.Action removeNonSelected -
viewLoadingReport
protected org.eclipse.jface.action.Action viewLoadingReport -
copySelected
protected org.eclipse.jface.action.Action copySelected -
showColumn
protected org.eclipse.jface.action.Action showColumn -
addComputedColumn
protected org.eclipse.jface.action.Action addComputedColumn -
sumColumn
protected org.eclipse.jface.action.Action sumColumn -
averageColumn
protected org.eclipse.jface.action.Action averageColumn -
hideColumn
protected org.eclipse.jface.action.Action hideColumn -
copySelectedColumnCells
protected org.eclipse.jface.action.Action copySelectedColumnCells -
viewSelectedCell
protected org.eclipse.jface.action.Action viewSelectedCell -
copySelectedCell
protected org.eclipse.jface.action.Action copySelectedCell -
uniqueValues
protected org.eclipse.jface.action.Action uniqueValues -
treeColumnLabelProvider
static org.eclipse.jface.viewers.LabelProvider treeColumnLabelProvider -
treeColumnSorter
static org.eclipse.jface.viewers.ViewerSorter treeColumnSorter
-
-
Constructor Details
-
XViewerCustomMenu
public XViewerCustomMenu() -
XViewerCustomMenu
-
-
Method Details
-
isHeaderMouseClick
public boolean isHeaderMouseClick() -
init
-
setupMenuForHeader
protected void setupMenuForHeader() -
setupMenuForHeader
public void setupMenuForHeader(org.eclipse.jface.action.MenuManager menuManager) -
setupMenuForTable
protected void setupMenuForTable() -
setupMenuForTable
public void setupMenuForTable(org.eclipse.jface.action.MenuManager menuManager) -
updateEditMenu
public void updateEditMenu(org.eclipse.jface.action.MenuManager mm) -
createEditMenuManager
public static org.eclipse.jface.action.MenuManager createEditMenuManager(XViewer xViewer, java.lang.String name, java.util.Collection<org.eclipse.swt.widgets.TreeItem> selectedTreeItems, java.util.Set<org.eclipse.swt.widgets.TreeColumn> editableColumns) -
createTableCustomizationMenuItem
public void createTableCustomizationMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
createViewTableReportMenuItem
public void createViewTableReportMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
addFilterMenuBlock
public void addFilterMenuBlock(org.eclipse.swt.widgets.Menu popupMenu) -
createFilterByColumnMenuItem
public void createFilterByColumnMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
createFilterByValueMenuItem
public void createFilterByValueMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
createClearAllFiltersMenuItem
public void createClearAllFiltersMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
createClearAllSortingMenuItem
public void createClearAllSortingMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
addCopyViewMenuBlock
public void addCopyViewMenuBlock(org.eclipse.swt.widgets.Menu popupMenu) -
createCopyRowsMenuItem
public void createCopyRowsMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
createCopyCellsMenuItem
public void createCopyCellsMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
createViewSelectedCellMenuItem
public void createViewSelectedCellMenuItem(org.eclipse.swt.widgets.Menu popupMenu) -
handleShowColumn
protected void handleShowColumn() -
handleAddComputedColumn
protected void handleAddComputedColumn() -
handleUniqeValuesColumn
protected void handleUniqeValuesColumn() -
handleSumColumn
protected void handleSumColumn() -
handleAverageColumn
protected void handleAverageColumn() -
handleHideColumn
protected void handleHideColumn() -
setupActions
protected void setupActions()
-