Package VASSAL.configure
Class TableConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.TableConfigurer
- All Implemented Interfaces:
ActionListener
,EventListener
public class TableConfigurer extends Configurer implements ActionListener
- Author:
- Brent Easton
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TableConfigurer.Column
-
Field Summary
Fields Modifier and Type Field Description static String
ADD_ACTION
protected char
colDelimiter
protected TableConfigurer.Column[]
columns
protected JPanel
contents
protected Box
controls
static String
DEL_ACTION
static String
INS_ACTION
protected char
rowDelimiter
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description TableConfigurer(String key, String name)
TableConfigurer(String key, String name, String[] headings, Class<?>[] types)
-
Method Summary
Modifier and Type Method Description void
actionPerformed(ActionEvent e)
protected void
buildControls()
int
getColumnCount()
Component
getControls()
GUI interface for setting the option in an editing windowString
getValueString()
protected void
repack()
void
setColDelimiter(char c)
void
setRowDelimiter(char c)
void
setValue(String s)
Set the Object value from a Stringprotected void
updateContents()
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName, setValue
-
Field Details
-
ADD_ACTION
- See Also:
- Constant Field Values
-
DEL_ACTION
- See Also:
- Constant Field Values
-
INS_ACTION
- See Also:
- Constant Field Values
-
controls
-
contents
-
columns
-
rowDelimiter
protected char rowDelimiter -
colDelimiter
protected char colDelimiter
-
-
Constructor Details
-
TableConfigurer
-
TableConfigurer
-
-
Method Details
-
getValueString
- Specified by:
getValueString
in classConfigurer
- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:Configurer
Set the Object value from a String- Specified by:
setValue
in classConfigurer
-
setRowDelimiter
public void setRowDelimiter(char c) -
setColDelimiter
public void setColDelimiter(char c) -
getColumnCount
public int getColumnCount() -
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
buildControls
protected void buildControls() -
repack
protected void repack() -
updateContents
protected void updateContents() -
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-