|
||||||||||
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.common.config.swing.StringArrayField
public class StringArrayField
A StringArrayField allows editing of an array of Strings in a JList. It allows the user to specify additional classes that extend the functionality of the program.
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
,
Serialized FormNested Class Summary | |
---|---|
static class |
StringArrayField.InputPane
The panel for a JOptionPane that allows editing a name/class combination. |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private ActionFactory |
actions
|
private static String |
ADD
|
private JList |
list
The Table - displays the Hashtble |
private DefaultComboBoxModel |
list_model
The TableModel that points the JTable at the Hashtable |
private static String |
REMOVE
|
private static String |
SEPARATOR
What character do we use to separate strings? |
private static long |
serialVersionUID
Serialization ID |
private static String |
UPDATE
|
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 | |
---|---|
StringArrayField()
Create a PropertyHashtableField for editing String arrays. |
Method Summary | |
---|---|
private String |
currentValue()
What is the currently selected value? |
void |
doAddEntry()
Pop up a dialog to allow editing of a new value |
void |
doRemoveEntry()
Delete the current value in the hashtable |
void |
doUpdateEntry()
Pop up a dialog to allow editing of a current value |
String[] |
getArray()
Return the actual Hashtable being edited |
JComponent |
getComponent()
Get the actual component that we can add to a Panel. |
String |
getValue()
Return a string version of the current value |
void |
setArray(String[] value)
Set the current value using a hashtable |
void |
setChoice(Choice param)
Some fields will need some extra info to display properly like the options in an options field. |
void |
setValue(String value)
Set the current value. |
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 static final String ADD
private static final String REMOVE
private static final String UPDATE
private static final String SEPARATOR
private ActionFactory actions
private DefaultComboBoxModel list_model
private JList list
private static final long serialVersionUID
Constructor Detail |
---|
public StringArrayField()
Method Detail |
---|
public void setChoice(Choice param)
Field
setChoice
in interface Field
param
- The options provided by the Choicepublic String getValue()
Field
getValue
in interface Field
public String[] getArray()
public void setValue(String value)
Field
setValue
in interface Field
value
- The new textpublic void setArray(String[] value)
value
- The new textpublic JComponent getComponent()
Field
this
in an implementation).
getComponent
in interface Field
public void doAddEntry()
public void doUpdateEntry()
public void doRemoveEntry()
private final String currentValue()
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |