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 classTableConfigurer.Column -
Field Summary
Fields Modifier and Type Field Description static StringADD_ACTIONprotected charcolDelimiterprotected TableConfigurer.Column[]columnsprotected JPanelcontentsprotected Boxcontrolsstatic StringDEL_ACTIONstatic StringINS_ACTIONprotected charrowDelimiterFields 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 voidactionPerformed(ActionEvent e)protected voidbuildControls()intgetColumnCount()ComponentgetControls()GUI interface for setting the option in an editing windowStringgetValueString()protected voidrepack()voidsetColDelimiter(char c)voidsetRowDelimiter(char c)voidsetValue(String s)Set the Object value from a Stringprotected voidupdateContents()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:
getValueStringin classConfigurer- Returns:
- a String representation of the Object value
-
setValue
Description copied from class:ConfigurerSet the Object value from a String- Specified by:
setValuein classConfigurer
-
setRowDelimiter
public void setRowDelimiter(char c) -
setColDelimiter
public void setColDelimiter(char c) -
getColumnCount
public int getColumnCount() -
getControls
Description copied from class:ConfigurerGUI interface for setting the option in an editing window- Specified by:
getControlsin classConfigurer
-
buildControls
protected void buildControls() -
repack
protected void repack() -
updateContents
protected void updateContents() -
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-