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 BasicChatControlsInitializerbasicControlsprotected ChatServerConnectionclientprotected JButtonconfigServerButtonprotected StringconfigServerTextprotected JPanelcontrolPanelprotected RoomTreecurrentRoomprotected JButtonlaunchprotected JTextFieldnewRoomprotected JButtonnewRoomButtonprotected JLabelnewRoomLabelprotected ChatControlsInitializeroldClientprotected RoomTreeroomTreeprotected ComponentSplitter.SplitPanesplitterDeprecated.type will change toSplitPaneprotected JToolBartoolbar -
Constructor Summary
Constructors Constructor Description ChatServerControls() -
Method Summary
Modifier and Type Method Description voidaddExtendedNewRoomHandler(ActionListener l)voidaddTo(Buildable b)Adds this component to its parent.String[]getAttributeNames()StringgetAttributeValueString(String name)Return a String representation of the attribute with the given name.ChatServerConnectiongetClient()JPanelgetControls()RoomTreegetCurrentRoom()ComponentgetExtendedControls()JTextFieldgetNewRoom()RoomTreegetRoomTree()JToolBargetToolbar()voidremoveExtendedNewRoomHandler(ActionListener l)voidsetAttribute(String name, Object value)Sets an attribute value for this component.voidsetClient(ChatServerConnection c)voidsetRoomControlsVisible(boolean visible)voidtoggleVisible()voidupdateClientDisplay(Icon icon, String text)Methods inherited from class VASSAL.build.AbstractBuildable
add, build, getAllDescendantComponentsOf, getBuildables, getBuildComponents, getBuildElement, getComponentsOf, getPropertyNames, validate
-
Field Details
-
currentRoom
-
newRoom
-
newRoomLabel
-
toolbar
-
roomTree
-
newRoomButton
-
launch
-
client
-
controlPanel
-
splitter
Deprecated.type will change toSplitPane -
oldClient
-
basicControls
-
configServerButton
-
configServerText
-
-
Constructor Details
-
ChatServerControls
public ChatServerControls()
-
-
Method Details
-
updateClientDisplay
-
getExtendedControls
-
addTo
Description copied from interface:BuildableAdds 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
- Specified by:
getAttributeNamesin classAbstractBuildable- Returns:
- a list of all attribute names for this component
-
setAttribute
Description copied from class:AbstractBuildableSets an attribute value for this component. Thekeyparameter will be one of those listed inAbstractBuildable.getAttributeNames(). If thevalueparameter is a String, it will be the value returned byAbstractBuildable.getAttributeValueString(java.lang.String)for the samekey. If the implementing class extendsAbstractConfigurable, thenvaluewill be an instance of the corresponding Class listed inAbstractConfigurable.getAttributeTypes()- Specified by:
setAttributein classAbstractBuildable- Parameters:
name- the name of the attribute. Will be one of those listed inAbstractBuildable.getAttributeNames()
-
getAttributeValueString
Description copied from class:AbstractBuildableReturn a String representation of the attribute with the given name. When initializing a module, this String value will be passed toAbstractBuildable.setAttribute(java.lang.String, java.lang.Object).- Specified by:
getAttributeValueStringin classAbstractBuildable- Parameters:
name- the name of the attribute. Will be one of those listed inAbstractBuildable.getAttributeNames()
-
getToolbar
-
getCurrentRoom
-
getNewRoom
-
addExtendedNewRoomHandler
-
removeExtendedNewRoomHandler
-
setRoomControlsVisible
public void setRoomControlsVisible(boolean visible) -
getRoomTree
-