public abstract class FrontendSettingsList extends BaseMenuPiece
DockFrontend.
The list contains the elements of DockFrontend.getSettings().| Constructor and Description |
|---|
FrontendSettingsList(DockFrontend frontend)
Creates a new list.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
action(String name)
Called when the user clicks on an item of this list.
|
void |
bind()
This method is called if there is a possibility for the user to see this menu.
|
DockFrontend |
getFrontend()
Gets the frontend which is currently observed
|
protected int |
preferredIndex(String name) |
void |
setFrontend(DockFrontend frontend)
Changes the frontend which is observed by this list.
|
void |
unbind()
This method is called if the user has no longer any possibility to see this menu.
|
void |
updateSelection()
Updates the selection state of the
JRadioButtonMenuItems that are used
on this menu. |
add, addSeparator, fill, getItem, getItemCount, insert, insertSeparator, remove, remove, removeAlladdListener, fireInsert, fireRemove, getMenu, getParent, isBound, items, removeListener, setParentpublic FrontendSettingsList(DockFrontend frontend)
frontend - the frontend to observe, can be nullpublic DockFrontend getFrontend()
nullpublic void setFrontend(DockFrontend frontend)
DockFrontend.getSettings().frontend - the frontend to observe, can be nullpublic void bind()
MenuPiecebind in class MenuPieceMenuPiece.unbind()public void unbind()
MenuPieceunbind in class MenuPieceMenuPiece.bind()protected abstract void action(String name)
name - the name of the itemprotected int preferredIndex(String name)
public void updateSelection()
JRadioButtonMenuItems that are used
on this menu. Only the one item representing the current layout of the DockFrontend
is selected.Copyright © 2018. All rights reserved.