GraphLab Project

graphlab.plugins.main.core.actions
Class StatusBarMessage

java.lang.Object
  extended by graphlab.platform.core.AbstractAction
      extended by graphlab.plugins.main.core.actions.StatusBarMessage
All Implemented Interfaces:
Action, Listener, GComponentInterface

public class StatusBarMessage
extends AbstractAction
implements GComponentInterface

with using of this class you can have a message in status bar of the program, by just putting a bar in the XML file as following

Author:
azin azadi

Field Summary
 
Fields inherited from class graphlab.platform.core.AbstractAction
blackboard
 
Constructor Summary
StatusBarMessage(BlackBoard bb)
          constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.awt.Component getComponent(BlackBoard b)
           
 void performAction(java.lang.String eventName, java.lang.Object value)
          like Action
static void setMessage(BlackBoard b, java.lang.String s)
          shows a message in the status bar of the Frame loaded and assigned to current blackboard note that at each time just 1 message can be shown on that place
static void showQuickMessage(BlackBoard b, java.lang.String message)
          shows a message in the status bar of the Frame loaded and assigned to current blackboard the showing message will be hide after 3 seconds
 
Methods inherited from class graphlab.platform.core.AbstractAction
disable, enable, getBlackBoard, getLastListenedEventKey, isEnable, keyChanged, listen4Event, setBlackBoard, unListenEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusBarMessage

public StatusBarMessage(BlackBoard bb)
constructor

Parameters:
bb - the blackboard of the action
Method Detail

performAction

public void performAction(java.lang.String eventName,
                          java.lang.Object value)
Description copied from class: AbstractAction
like Action

Specified by:
performAction in interface Action
Specified by:
performAction in class AbstractAction

showQuickMessage

public static void showQuickMessage(BlackBoard b,
                                    java.lang.String message)
shows a message in the status bar of the Frame loaded and assigned to current blackboard the showing message will be hide after 3 seconds


setMessage

public static void setMessage(BlackBoard b,
                              java.lang.String s)
shows a message in the status bar of the Frame loaded and assigned to current blackboard note that at each time just 1 message can be shown on that place


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

getComponent

public java.awt.Component getComponent(BlackBoard b)
Specified by:
getComponent in interface GComponentInterface

GraphLab Project