All Packages Class Hierarchy This Package Previous Next Index
Class tc.message.handler.client.AccountOptionsMessageHandler
java.lang.Object
|
+----connection.MessageHandler
|
+----tc.message.handler.client.AccountOptionsMessageHandler
- public class AccountOptionsMessageHandler
- extends MessageHandler
AccountOptionsMessageHandler handles AccountOptionsMessages sent from the
server to the client.
- Version:
- 0.30, 1998/04/01
- Author:
- FRED development team, Antti Viljamaa, Jukka Viljamaa
- See Also:
- MessageHandler, AccountOptionsMessage
-
calendarPanel
- The calendar panel to which some values from the message are assigned.
-
timeGrid
- The time grid to which values from the message are assigned.
-
AccountOptionsMessageHandler(ConnectionManager, TimeGrid, CalendarPanel, MessageHandler)
- Initializes the AccountOptionsMessageHandler with the given arguments.
-
getCalendarPanel()
- Gets the calendar panel to which some values from the message are
assigned.
-
getTimeGrid()
- Gets the time grid to which values from the message are assigned.
-
handle(Message)
- This method handles AccountOptionsMessage objects others are redirected
onwards.
-
setCalendarPanel(CalendarPanel)
- Sets the calendar panel to which some values from the message are
assigned.
-
setTimeGrid(TimeGrid)
- Sets the time grid to which values from the message are assigned.
calendarPanel
private CalendarPanel calendarPanel
- The calendar panel to which some values from the message are assigned.
timeGrid
private TimeGrid timeGrid
- The time grid to which values from the message are assigned.
AccountOptionsMessageHandler
public AccountOptionsMessageHandler(ConnectionManager cm,
TimeGrid tg,
CalendarPanel cp,
MessageHandler successor)
- Initializes the AccountOptionsMessageHandler with the given arguments.
- Parameters:
- cm - The connection manager who received the message and
passed it to this handler. Usually any response
messages to the peer are sent through this same
connection manager.
- tg - The time grid to which values from the message
are assigned.
- cp - The calendar panel to which some values from
the message are assigned.
- successor - The next message handler in the handler chain (if any).
handle
public boolean handle(Message m)
- This method handles AccountOptionsMessage objects others are redirected
onwards.
- Parameters:
- m - The message to be handled. If it is an instance of
class AccountOptionsMessage, its attribute values
are used to update the client's time grid and
calendar panel. Otherwise the message is redirected
to the next handler.
- Returns:
-
true
if the message was succesfully
handled.
- Overrides:
- handle in class MessageHandler
getCalendarPanel
private CalendarPanel getCalendarPanel()
- Gets the calendar panel to which some values from the message are
assigned.
getTimeGrid
private TimeGrid getTimeGrid()
- Gets the time grid to which values from the message are assigned.
setCalendarPanel
private void setCalendarPanel(CalendarPanel cp)
- Sets the calendar panel to which some values from the message are
assigned.
setTimeGrid
private void setTimeGrid(TimeGrid tg)
- Sets the time grid to which values from the message are assigned.
All Packages Class Hierarchy This Package Previous Next Index