public class RepeatInputComboBoxDialog
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static class |
RepeatInputComboBoxDialog.EditableListPanel |
static interface |
RepeatInputComboBoxDialog.Processor
A callback interface for processing input and returning results for
display in the dialog.
|
static class |
RepeatInputComboBoxDialog.RequestFocusListener
http://tips4java.wordpress.com/2010/03/14/dialog-focus/
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelSelected |
protected static java.util.LinkedList<java.lang.Object> |
choices |
protected static RepeatInputComboBoxDialog.EditableListPanel |
editableListPanel |
protected javax.swing.Icon |
icon |
protected static java.util.LinkedList<java.lang.Object> |
inputHistory |
protected java.lang.Object[] |
items |
protected static java.lang.Object |
lastInput |
protected static java.lang.Object |
lastResult |
protected static int |
maxChoices |
protected java.lang.Object |
message |
protected int |
messageType |
protected int |
optionType |
protected java.awt.Component |
parentComponent |
protected static java.util.HashSet<java.lang.Object> |
pastInputs |
protected RepeatInputComboBoxDialog.Processor |
processor
callback for processing input
|
protected java.lang.String |
title |
Constructor and Description |
---|
RepeatInputComboBoxDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.Object[] items,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon,
java.util.LinkedList<java.lang.Object> choices,
int maxChoices,
RepeatInputComboBoxDialog.Processor processor)
Initialize options but do not create the dialog.
|
RepeatInputComboBoxDialog(java.lang.Object message,
java.lang.String title,
RepeatInputComboBoxDialog.Processor processor) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getSelectedItem(java.lang.Object component) |
static java.lang.Object[] |
getSelectedObjects(java.awt.Component c) |
static <T extends java.awt.Component> |
getTopComponentOfType(java.awt.Component component,
java.lang.Class<T> type) |
static void |
main(java.lang.String[] args) |
void |
run() |
void |
show() |
static void |
showRepeatInputComboBoxDialog(java.awt.Component parentComponent,
java.lang.Object message,
java.lang.Object[] items,
java.lang.String title,
int optionType,
int messageType,
javax.swing.Icon icon,
java.util.LinkedList<java.lang.Object> choices,
int maxChoices,
RepeatInputComboBoxDialog.Processor processor) |
static void |
showRepeatInputComboBoxDialog(java.lang.Object message,
java.lang.String title,
RepeatInputComboBoxDialog.Processor processor) |
protected java.awt.Component parentComponent
protected java.lang.Object message
protected java.lang.Object[] items
protected java.lang.String title
protected int optionType
protected int messageType
protected javax.swing.Icon icon
protected static java.lang.Object lastInput
protected static java.lang.Object lastResult
protected static java.util.LinkedList<java.lang.Object> inputHistory
protected static java.util.HashSet<java.lang.Object> pastInputs
protected static java.util.LinkedList<java.lang.Object> choices
protected static int maxChoices
protected RepeatInputComboBoxDialog.Processor processor
protected static RepeatInputComboBoxDialog.EditableListPanel editableListPanel
protected boolean cancelSelected
public RepeatInputComboBoxDialog(java.lang.Object message, java.lang.String title, RepeatInputComboBoxDialog.Processor processor)
message
- title
- processor
- public RepeatInputComboBoxDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.Object[] items, java.lang.String title, int optionType, int messageType, javax.swing.Icon icon, java.util.LinkedList<java.lang.Object> choices, int maxChoices, RepeatInputComboBoxDialog.Processor processor)
parentComponent
- message
- items
- title
- optionType
- messageType
- icon
- choices
- maxChoices
- max number of previous inputs to remember and provide as
choices in a combo boxprocessor
- callback for processing inputpublic static void showRepeatInputComboBoxDialog(java.lang.Object message, java.lang.String title, RepeatInputComboBoxDialog.Processor processor)
public static void showRepeatInputComboBoxDialog(java.awt.Component parentComponent, java.lang.Object message, java.lang.Object[] items, java.lang.String title, int optionType, int messageType, javax.swing.Icon icon, java.util.LinkedList<java.lang.Object> choices, int maxChoices, RepeatInputComboBoxDialog.Processor processor)
public void show()
public void run()
run
in interface java.lang.Runnable
public static java.lang.Object[] getSelectedObjects(java.awt.Component c)
public static java.lang.Object getSelectedItem(java.lang.Object component)
public static void main(java.lang.String[] args)
args
- public static <T extends java.awt.Component> T getTopComponentOfType(java.awt.Component component, java.lang.Class<T> type)
component
- type
-