|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
uk.ac.starlink.util.gui.SelectCharacters
public class SelectCharacters
SelectCharacters provides a dialog that displays all the characters in a given font.
A series of characters may be selected and either sent to registered listener objects that implement the SelectCharactersListener interface and register themselves, or returned as a result when the a modal form of the dialog that returns the selected characters maye be used.
InsertCharacters, SelectCharactersModel
,
Serialized FormNested Class Summary | |
---|---|
protected class |
SelectCharacters.AcceptAction
Inner class defining Action for accepting characters. |
protected class |
SelectCharacters.CancelAction
Inner class defining Action for cancelling acceptance of characters. |
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected EventListenerList |
listeners
|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SelectCharacters(Font displayFont)
Create an instance of this class. |
|
SelectCharacters(Frame owner,
String title,
boolean modal,
Font displayFont)
Create an instance of this class. |
Method Summary | |
---|---|
void |
addListener(SelectCharactersListener l)
Registers a listener who wants to be informed about the final character string (when the window exits). |
protected void |
cellSelected(ListSelectionEvent e)
A cell has been selected. |
protected void |
closeWindowEvent(boolean accept)
Close window, either sending the text to any registered listeners, or not. |
protected void |
fireExiting()
Send SelectCharactersEvent event to all listeners. |
protected void |
initFont()
Initialise the interface to use the display font. |
void |
setDisplayFont(Font displayFont)
Set the font that that is displayed. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected EventListenerList listeners
Constructor Detail |
---|
public SelectCharacters(Font displayFont)
public SelectCharacters(Frame owner, String title, boolean modal, Font displayFont)
Method Detail |
---|
public void setDisplayFont(Font displayFont)
protected void closeWindowEvent(boolean accept)
protected void initFont()
protected void cellSelected(ListSelectionEvent e)
public void addListener(SelectCharactersListener l)
l
- the SelectCharactersListenerprotected void fireExiting()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |