public class NavigationControl extends java.lang.Object implements javax.swing.event.ListSelectionListener, javax.swing.event.ListDataListener, java.awt.event.ActionListener, java.beans.PropertyChangeListener, Updatable
Modifier and Type | Class and Description |
---|---|
static class |
NavigationControl.ArrowStyle |
class |
NavigationControl.DefaultIndexFormatter |
static class |
NavigationControl.ElementType |
Modifier and Type | Field and Description |
---|---|
protected ActionManager |
actionManager |
static java.lang.String |
ARROW_STYLE_OPTION |
protected NavigationControl.ArrowStyle |
arrowStyle |
static java.lang.String |
CENTER_CONTENT_OPTION |
static NavigationControl.ArrowStyle |
DEFAULT_ARROW_STYLE |
protected static java.lang.String |
firstActionId |
protected javax.swing.JFormattedTextField |
indexField |
protected static java.lang.String |
lastActionId |
static java.lang.String |
LEFT_CONTENT_OPTION |
protected javax.swing.JList<?> |
list |
static NavigationControl.ArrowStyle |
MINI_ARROW_STYLE |
protected static java.lang.String |
nextActionId |
protected Options |
options |
protected static java.lang.String |
previousActionId |
static NavigationControl.ArrowStyle |
RED_ARROW_STYLE |
static java.lang.String |
RIGHT_CONTENT_OPTION |
static java.lang.String |
TITLE_LABEL_OPTION |
protected javax.swing.JLabel |
titleLabel |
protected javax.swing.JToolBar |
toolBar |
Constructor and Description |
---|
NavigationControl(javax.swing.JList<?> list,
Options options) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
contentsChanged(javax.swing.event.ListDataEvent e) |
protected javax.swing.JFormattedTextField |
createIndexField() |
protected ActionComponentBuilder |
createToolBar(Options options) |
protected ActionManager |
getActionManager() |
NavigationControl.ArrowStyle |
getArrowStyle() |
protected static ActionManager |
getSharedActionManager() |
javax.swing.JToolBar |
getToolBar() |
void |
intervalAdded(javax.swing.event.ListDataEvent e) |
void |
intervalRemoved(javax.swing.event.ListDataEvent e) |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
protected void |
refreshActions() |
protected void |
refreshDisplayedSize() |
protected void |
refreshListSelection(int index) |
protected void |
refreshSelectedIndex() |
protected void |
registerActionCallbacks() |
void |
setArrowStyle(NavigationControl.ArrowStyle arrowStyle) |
void |
setTitle(java.lang.String title) |
boolean |
update() |
void |
valueChanged(javax.swing.event.ListSelectionEvent e) |
public static final java.lang.String ARROW_STYLE_OPTION
public static final java.lang.String LEFT_CONTENT_OPTION
public static final java.lang.String CENTER_CONTENT_OPTION
public static final java.lang.String RIGHT_CONTENT_OPTION
public static final java.lang.String TITLE_LABEL_OPTION
public static final NavigationControl.ArrowStyle DEFAULT_ARROW_STYLE
public static final NavigationControl.ArrowStyle RED_ARROW_STYLE
public static final NavigationControl.ArrowStyle MINI_ARROW_STYLE
protected static final java.lang.String firstActionId
protected static final java.lang.String previousActionId
protected static final java.lang.String nextActionId
protected static final java.lang.String lastActionId
protected final javax.swing.JList<?> list
protected javax.swing.JLabel titleLabel
protected javax.swing.JFormattedTextField indexField
protected NavigationControl.ArrowStyle arrowStyle
protected ActionManager actionManager
protected javax.swing.JToolBar toolBar
protected final Options options
public NavigationControl(javax.swing.JList<?> list, Options options)
public javax.swing.JToolBar getToolBar()
public NavigationControl.ArrowStyle getArrowStyle()
public void setArrowStyle(NavigationControl.ArrowStyle arrowStyle)
public void setTitle(java.lang.String title)
protected static final ActionManager getSharedActionManager()
protected ActionManager getActionManager()
protected ActionComponentBuilder createToolBar(Options options)
protected javax.swing.JFormattedTextField createIndexField()
protected void refreshActions()
protected void registerActionCallbacks()
protected void refreshSelectedIndex()
protected void refreshListSelection(int index)
protected void refreshDisplayedSize()
public void intervalAdded(javax.swing.event.ListDataEvent e)
intervalAdded
in interface javax.swing.event.ListDataListener
ListDataListener.intervalAdded(javax.swing.event.ListDataEvent)
public void intervalRemoved(javax.swing.event.ListDataEvent e)
intervalRemoved
in interface javax.swing.event.ListDataListener
ListDataListener.intervalRemoved(javax.swing.event.ListDataEvent)
public void contentsChanged(javax.swing.event.ListDataEvent e)
contentsChanged
in interface javax.swing.event.ListDataListener
ListDataListener.contentsChanged(javax.swing.event.ListDataEvent)
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
ListSelectionListener.valueChanged(javax.swing.event.ListSelectionEvent)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
public boolean update()
update
in interface Updatable
Updatable.update()