Package VASSAL.chat.ui
Class ChatServerControls
java.lang.Object
VASSAL.build.AbstractBuildable
VASSAL.chat.ui.ChatServerControls
- All Implemented Interfaces:
Buildable
,PropertyNameSource
,ValidityChecker
public class ChatServerControls extends AbstractBuildable
-
Field Summary
Fields Modifier and Type Field Description protected BasicChatControlsInitializer
basicControls
protected ChatServerConnection
client
protected JButton
configServerButton
protected String
configServerText
protected JPanel
controlPanel
protected RoomTree
currentRoom
protected JButton
launch
protected JTextField
newRoom
protected JButton
newRoomButton
protected JLabel
newRoomLabel
protected ChatControlsInitializer
oldClient
protected RoomTree
roomTree
protected ComponentSplitter.SplitPane
splitter
protected JToolBar
toolbar
Fields inherited from class VASSAL.build.AbstractBuildable
buildComponents, validator
-
Constructor Summary
Constructors Constructor Description ChatServerControls()
-
Method Summary
Modifier and Type Method Description void
addExtendedNewRoomHandler(ActionListener l)
void
addTo(Buildable b)
Adds this component to its parent.String[]
getAttributeNames()
Lists all the buildFile (XML) attribute names for this component.String
getAttributeValueString(String name)
ChatServerConnection
getClient()
JPanel
getControls()
RoomTree
getCurrentRoom()
Component
getExtendedControls()
JTextField
getNewRoom()
RoomTree
getRoomTree()
JToolBar
getToolbar()
void
removeExtendedNewRoomHandler(ActionListener l)
void
setAttribute(String name, Object value)
Sets a buildFile (XML) attribute value for this component.void
setClient(ChatServerConnection c)
void
setRoomControlsVisible(boolean visible)
void
toggleVisible()
void
updateClientDisplay(Icon icon, String text)
Methods inherited from class VASSAL.build.AbstractBuildable
add, build, getAllDescendantComponents, getAllDescendantComponentsOf, getBuildables, getBuildComponents, getBuildElement, getComponents, getComponentsOf, getPropertyNames, validate
-
Field Details
-
currentRoom
-
newRoom
-
newRoomLabel
-
toolbar
-
roomTree
-
newRoomButton
-
launch
-
client
-
controlPanel
-
splitter
-
oldClient
-
basicControls
-
configServerButton
-
configServerText
-
-
Constructor Details
-
ChatServerControls
public ChatServerControls()
-
-
Method Details
-
updateClientDisplay
-
getExtendedControls
-
addTo
Description copied from interface:Buildable
Adds this component to its parent. In order to make Buildable objects extensible, the child is reponsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class. -
toggleVisible
public void toggleVisible() -
getControls
-
setClient
-
getClient
-
getAttributeNames
Description copied from class:AbstractBuildable
Lists all the buildFile (XML) attribute names for this component. If this component is ALSO anAbstractConfigurable
, then this list of attributes determines the appropriate attribute order forAbstractConfigurable.getAttributeDescriptions()
andAbstractConfigurable.getAttributeTypes()
.- Specified by:
getAttributeNames
in classAbstractBuildable
- Returns:
- a list of all buildFile (XML) attribute names for this component
-
setAttribute
Description copied from class:AbstractBuildable
Sets a buildFile (XML) attribute value for this component. Thekey
parameter will be one of those listed inAbstractBuildable.getAttributeNames()
. If thevalue
parameter is a String, it will be the value returned byAbstractBuildable.getAttributeValueString(java.lang.String)
for the samekey
. If the implementing class extendsAbstractConfigurable
, thenvalue
will be an instance of the corresponding Class listed inAbstractConfigurable.getAttributeTypes()
- Specified by:
setAttribute
in classAbstractBuildable
- Parameters:
name
- the name of the attribute. Will be one of those listed inAbstractBuildable.getAttributeNames()
value
- If thevalue
parameter is a String, it will be the value returned byAbstractBuildable.getAttributeValueString(java.lang.String)
for the samekey
. If the implementing class extendsAbstractConfigurable
, thenvalue
can also be an instance of the corresponding Class listed inAbstractConfigurable.getAttributeTypes()
-
getAttributeValueString
- Specified by:
getAttributeValueString
in classAbstractBuildable
- Parameters:
name
- the name of the attribute. Will be one of those listed inAbstractBuildable.getAttributeNames()
- Returns:
- a String representation of the attribute with the given name. When initializing a module, this String value will be passed to
AbstractBuildable.setAttribute(java.lang.String, java.lang.Object)
.
-
getToolbar
-
getCurrentRoom
-
getNewRoom
-
addExtendedNewRoomHandler
-
removeExtendedNewRoomHandler
-
setRoomControlsVisible
public void setRoomControlsVisible(boolean visible) -
getRoomTree
-