ggz.ui
Class RoomChatPanel.RoomChatAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ggz.ui.ChatAction
          extended by ggz.ui.RoomChatPanel.RoomChatAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
RoomChatPanel

protected class RoomChatPanel.RoomChatAction
extends ChatAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ggz.ui.ChatAction
chatPanel
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected RoomChatPanel.RoomChatAction()
           
 
Method Summary
protected  void chat_display_local(ChatType type, java.lang.String message)
           
protected  ChatType getDefaultChatType()
           
protected  boolean sendAdmin(AdminType type, java.lang.String player, java.lang.String reason)
           
protected  boolean sendChat(ChatType chatType, java.lang.String target, java.lang.String message)
          Performs the requested chat operation.
 
Methods inherited from class ggz.ui.ChatAction
actionPerformed, sendBeep
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoomChatPanel.RoomChatAction

protected RoomChatPanel.RoomChatAction()
Method Detail

sendChat

protected boolean sendChat(ChatType chatType,
                           java.lang.String target,
                           java.lang.String message)
                    throws java.io.IOException
Description copied from class: ChatAction
Performs the requested chat operation. If a particular chat operation is not allowed this method should return false.

Specified by:
sendChat in class ChatAction
Returns:
true if the operation was performed, false otherwise.
Throws:
java.io.IOException

sendAdmin

protected boolean sendAdmin(AdminType type,
                            java.lang.String player,
                            java.lang.String reason)
                     throws java.io.IOException
Specified by:
sendAdmin in class ChatAction
Throws:
java.io.IOException

chat_display_local

protected void chat_display_local(ChatType type,
                                  java.lang.String message)
Specified by:
chat_display_local in class ChatAction

getDefaultChatType

protected ChatType getDefaultChatType()
Specified by:
getDefaultChatType in class ChatAction