| Modifier and Type | Class and Description |
|---|---|
| private class | MainTableHeaderContextMenu.
RightClickMenuItem: RadioMenuItem holding position in MainTable and its visibility. |
| Modifier and Type | Field and Description |
|---|---|
| private final DialogService | |
| pack-priv MainTableColumnFactory | |
| pack-priv MainTable | |
| private static final int | |
| private final LibraryTabContainer |
| Access | Constructor and Description |
|---|---|
| public | MainTableHeaderContextMenu(MainTable mainTable, MainTableColumnFactory factory, LibraryTabContainer tabContainer, DialogService dialogService)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private List | commonColumns()
Creates the list of the "commonly used" columns (currently based on the default preferences). |
| private void | |
| private MainTableHeaderContextMenu. | createMenuItem(TableColumn<BibEntryTableViewModel, ?> column, boolean isDisplaying)
Creates an item for the menu constructed with the name/visibility of the table column. |
| private boolean | isACommonColumn(MainTableColumn<?> tableColumn)
Checks if a column is one of the commonly used columns. |
| private boolean | isColumnInList(MainTableColumn<?> searchColumn, List<TableColumn<BibEntryTableViewModel, ?>> tableColumns)
Determines if a list of TableColumns contains the searched column. |
| private int | obtainIndexOfColumn(MainTableColumn<?> searchColumn)
Returns the current position of the inputted column in the table (index). |
| private void | removeColumn(MainTableColumn<?> tableColumn)
Removes the column from the MainTable to remove visibility. |
| public void |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| factory | back to summary |
|---|---|
| pack-priv MainTableColumnFactory factory | |
| mainTable | back to summary |
|---|---|
| pack-priv MainTable mainTable | |
| OUT_OF_BOUNDS | back to summary |
|---|---|
| private static final int OUT_OF_BOUNDS | |
| tabContainer | back to summary |
|---|---|
| private final LibraryTabContainer tabContainer | |
| MainTableHeaderContextMenu | back to summary |
|---|---|
| public MainTableHeaderContextMenu(MainTable mainTable, MainTableColumnFactory factory, LibraryTabContainer tabContainer, DialogService dialogService) | |
| addColumn | back to summary |
|---|---|
| private void addColumn(MainTableColumn<?> tableColumn, int index) Adds the column into the MainTable for display. | |
| commonColumns | back to summary |
|---|---|
| private List Creates the list of the "commonly used" columns (currently based on the default preferences). | |
| constructItems | back to summary |
|---|---|
| private void constructItems() Constructs the items for the list and places them in the menu. | |
| createMenuItem | back to summary |
|---|---|
| private MainTableHeaderContextMenu. Creates an item for the menu constructed with the name/visibility of the table column. | |
| isACommonColumn | back to summary |
|---|---|
| private boolean isACommonColumn(MainTableColumn<?> tableColumn) Checks if a column is one of the commonly used columns. | |
| isColumnInList | back to summary |
|---|---|
| private boolean isColumnInList(MainTableColumn<?> searchColumn, List<TableColumn<BibEntryTableViewModel, ?>> tableColumns) Determines if a list of TableColumns contains the searched column. | |
| obtainIndexOfColumn | back to summary |
|---|---|
| private int obtainIndexOfColumn(MainTableColumn<?> searchColumn) Returns the current position of the inputted column in the table (index). | |
| removeColumn | back to summary |
|---|---|
| private void removeColumn(MainTableColumn<?> tableColumn) Removes the column from the MainTable to remove visibility. | |
| show | back to summary |
|---|---|
| public void show(boolean show) Handles showing the menu in the cursors position when right-clicked. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public void |
| index | back to summary |
|---|---|
| private int index | |
| visibleInTable | back to summary |
|---|---|
| private boolean visibleInTable | |
| RightClickMenuItem | back to summary |
|---|---|
| pack-priv RightClickMenuItem(String displayName, MainTableColumn<?> column, boolean isVisible) | |
| isVisibleInTable | back to summary |
|---|---|
| public boolean isVisibleInTable() | |
| setIndex | back to summary |
|---|---|
| public void setIndex(int index) | |
| setVisibleInTable | back to summary |
|---|---|
| public void setVisibleInTable(boolean visibleInTable) | |