org.openbp.jaspira.plugins.statusbar
Class StatusBarComponentEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.openbp.jaspira.event.JaspiraEvent
          extended by org.openbp.jaspira.plugins.statusbar.StatusBarComponentEvent
All Implemented Interfaces:
java.io.Serializable

public class StatusBarComponentEvent
extends JaspiraEvent

Event used to control the statusbar and its components.

Author:
Jens Ferchland
See Also:
Serialized Form

Field Summary
static int ADD
          Adds a component to the statusbar
static int REMOVE
          Removes a Component from the statusbar
static int REPLACE
          updates/replaces a component in the statusbar
 
Fields inherited from class org.openbp.jaspira.event.JaspiraEvent
CONSUMED, HANDELED, STACKABLE, TYPE_BOTTOM_UP, TYPE_DIRECT, TYPE_FLOOD, TYPE_GLOBAL, UNCONSUMABLE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StatusBarComponentEvent(Plugin plugin, java.awt.Component oldComponent, java.awt.Component newComponent)
          Constructor for REPLACE operations.
StatusBarComponentEvent(Plugin plugin, int operation, java.awt.Component comp)
          Constructor for ADD or REMOVE operations.
 
Method Summary
 java.awt.Component getNewComponent()
          Gets the the new Component.
 java.awt.Component getOldComponent()
          Gets the the old Component.
 int getOperation()
          Gets the type of operation to perform.
 
Methods inherited from class org.openbp.jaspira.event.JaspiraEvent
brand, getBrand, getEventGroup, getEventName, getFlags, getLevel, getObject, getOriginalEvent, getSourcePlugin, getTargetClassName, getTargetPluginId, getType, isConsumed, isStackable, isUnconsumable, setObject, setTargetClassName, setTargetPluginId, toString, updateFlags, updateFlags
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
Adds a component to the statusbar

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
Removes a Component from the statusbar

See Also:
Constant Field Values

REPLACE

public static final int REPLACE
updates/replaces a component in the statusbar

See Also:
Constant Field Values
Constructor Detail

StatusBarComponentEvent

public StatusBarComponentEvent(Plugin plugin,
                               int operation,
                               java.awt.Component comp)
Constructor for ADD or REMOVE operations.

Parameters:
plugin - Source plugin
operation - Type of operation to perform
comp - Component to add or remve

StatusBarComponentEvent

public StatusBarComponentEvent(Plugin plugin,
                               java.awt.Component oldComponent,
                               java.awt.Component newComponent)
Constructor for REPLACE operations.

Parameters:
plugin - Source plugin
oldComponent - Component to replace
newComponent - New component
Method Detail

getOperation

public int getOperation()
Gets the type of operation to perform.


getNewComponent

public java.awt.Component getNewComponent()
Gets the the new Component.


getOldComponent

public java.awt.Component getOldComponent()
Gets the the old Component.



Copyright © 2011. All Rights Reserved.