dip.gui
Class MessageMenuHandler

java.lang.Object
  extended bydip.gui.MessageMenuHandler

public class MessageMenuHandler
extends java.lang.Object

The ClientMenu class requires a MessageMenuHandler to support (and display) the Message Menu. The menu item constants, though, are still defined


Field Summary
static ClientMenu.Item MESSAGE
           
static ClientMenu.Item MESSAGE_PRESS_PROPERTIES
           
static ClientMenu.Item MESSAGE_PRESS_VIEW
           
static ClientMenu.Item MESSAGE_PRESS_WRITE
           
 
Constructor Summary
MessageMenuHandler(ClientFrame cf)
          Create a Message Menu Handler object
 
Method Summary
 void bind(ClientMenu cm)
          Bind the MessageMenuHandler to the Client Menu.
 void onMsgPressProperties()
          Handler for viewing press properties
 void onMsgPressView()
          Handler for viewing press messages
 void onMsgPressWrite()
          Handler for composing (new) press messages
 void setPressChannel(PressChannel channel)
          Set the PressChannel object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE

public static final ClientMenu.Item MESSAGE

MESSAGE_PRESS_WRITE

public static final ClientMenu.Item MESSAGE_PRESS_WRITE

MESSAGE_PRESS_VIEW

public static final ClientMenu.Item MESSAGE_PRESS_VIEW

MESSAGE_PRESS_PROPERTIES

public static final ClientMenu.Item MESSAGE_PRESS_PROPERTIES
Constructor Detail

MessageMenuHandler

public MessageMenuHandler(ClientFrame cf)
Create a Message Menu Handler object

Method Detail

bind

public void bind(ClientMenu cm)
Bind the MessageMenuHandler to the Client Menu. This creates or removes the menu and appropriate menu items, depending upon what has been set (if no PressChannel has been set, Press menu options are not displayed, for example).

Therefore, this should be called only AFTER appropriate Press/Message handlers have been set.


setPressChannel

public void setPressChannel(PressChannel channel)
Set the PressChannel object. Null sets no press channel.


onMsgPressWrite

public void onMsgPressWrite()
Handler for composing (new) press messages


onMsgPressView

public void onMsgPressView()
Handler for viewing press messages


onMsgPressProperties

public void onMsgPressProperties()
Handler for viewing press properties



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.