Package VASSAL.configure
Class PieceAccessConfigurer
java.lang.Object
VASSAL.configure.Configurer
VASSAL.configure.PieceAccessConfigurer
public class PieceAccessConfigurer extends Configurer
-
Field Summary
Fields Modifier and Type Field Description protected JPanel
controls
protected static String
PLAYER
protected String[]
prompts
protected JComboBox<String>
selectType
protected static String
SIDE
protected StringArrayConfigurer
sideConfig
protected static String
SIDES
Fields inherited from class VASSAL.configure.Configurer
changeSupport, frozen, key, name, NAME_PROPERTY, noUpdate, value
-
Constructor Summary
Constructors Constructor Description PieceAccessConfigurer(String key, String name, PieceAccess value)
-
Method Summary
Modifier and Type Method Description static PieceAccess
decode(String s)
static String
encode(PieceAccess p)
Component
getControls()
GUI interface for setting the option in an editing windowPieceAccess
getPieceAccess()
String[]
getPrompts()
String
getValueString()
void
setPrompts(String[] prompts)
void
setValue(Object o)
Set the Object valuevoid
setValue(String s)
Set the Object value from a Stringprotected void
updateControls()
protected void
updateValue()
Methods inherited from class VASSAL.configure.Configurer
addPropertyChangeListener, fireUpdate, getKey, getName, getValue, isFrozen, removePropertyChangeListener, setFrozen, setName
-
Field Details
-
PLAYER
-
SIDE
-
SIDES
-
controls
-
prompts
-
selectType
-
sideConfig
-
-
Constructor Details
-
PieceAccessConfigurer
-
-
Method Details
-
setValue
Description copied from class:Configurer
Set the Object value- Overrides:
setValue
in classConfigurer
-
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
-
getControls
Description copied from class:Configurer
GUI interface for setting the option in an editing window- Specified by:
getControls
in classConfigurer
-
updateValue
protected void updateValue() -
updateControls
protected void updateControls() -
getPrompts
-
getPieceAccess
-
decode
-
encode
-
setPrompts
-