|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.crosswire.bibledesktop.passage.KeySidebar
public class KeySidebar
A list view of a key range list.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private CWAction |
actBlur1
|
private CWAction |
actBlur5
|
private CWAction |
actDelete
|
private Book[] |
books
The books who's keys we are looking at |
private Key |
key
The whole key that we are viewing |
private List<KeyChangeListener> |
keyChangeListeners
The listener for KeyChangeEvents |
private JList |
list
|
private RangeListModel |
model
|
private Key |
partial
The key that is selected |
private static long |
serialVersionUID
Serialization ID |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
KeySidebar(Book[] books)
Initialize the SplitBookDataDisplay |
Method Summary | |
---|---|
void |
addKeyChangeListener(KeyChangeListener listener)
Add a command listener |
void |
bookChosen(DisplaySelectEvent ev)
This method is called to indicate that a command has been made. |
private void |
doBlur(int amount)
Blur (expand) the current key action by amount verses on each side. |
void |
doBlur1()
Blur (expand) the current passage action by one verse on each side. |
void |
doBlur5()
Blur (expand) the current key by five verses on each side. |
void |
doDeleteSelected()
Remove the selected verses out of this KeySidebar. |
(package private) void |
fireKeyChanged(KeyChangeEvent ev)
Inform the command keyChangeListeners |
Key |
getKey()
|
private void |
init()
Create the GUI |
void |
keyChanged(KeyChangeEvent ev)
This method is called to indicate that a key has been changed. |
void |
passageSelected(DisplaySelectEvent ev)
This method is called to indicate that a command has been made. |
private void |
readObject(ObjectInputStream is)
Serialization support. |
void |
removeKeyChangeListener(KeyChangeListener listener)
Remove a command listener |
(package private) void |
selection()
Someone clicked on a value in the list |
private void |
setActive()
Make sure the correct buttons are made active |
private void |
setKey(Key newKey)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Key key
private Key partial
private transient Book[] books
private transient List<KeyChangeListener> keyChangeListeners
private JList list
private RangeListModel model
private CWAction actDelete
private CWAction actBlur1
private CWAction actBlur5
private static final long serialVersionUID
Constructor Detail |
---|
public KeySidebar(Book[] books)
Method Detail |
---|
private void init()
public void doBlur1()
public void doBlur5()
private void doBlur(int amount)
amount
- The amount of blurringpublic void doDeleteSelected()
public Key getKey()
private void setKey(Key newKey)
final void selection()
private void setActive()
public void passageSelected(DisplaySelectEvent ev)
DisplaySelectListener
passageSelected
in interface DisplaySelectListener
ev
- Describes the changepublic void bookChosen(DisplaySelectEvent ev)
DisplaySelectListener
bookChosen
in interface DisplaySelectListener
ev
- Describes the changepublic void keyChanged(KeyChangeEvent ev)
KeyChangeListener
keyChanged
in interface KeyChangeListener
ev
- Describes the changepublic void addKeyChangeListener(KeyChangeListener listener)
public void removeKeyChangeListener(KeyChangeListener listener)
final void fireKeyChanged(KeyChangeEvent ev)
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
-
IOException
ClassNotFoundException
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |