au.edu.swin.synergy.plugin.mod13.event
Class BAddToolBarCE
java.lang.Object
|
+--java.util.EventObject
|
+--au.edu.swin.synergy.kernel.BCommandEvent
|
+--au.edu.swin.synergy.plugin.mod13.event.BWindowCE
|
+--au.edu.swin.synergy.plugin.mod13.event.BAddToolBarCE
- Direct Known Subclasses:
- BRemoveToolBarCE
- public class BAddToolBarCE
- extends BWindowCE
Allows the source to add a tool bar to the main frame
of the window manager.
- Author:
- Tristan Austin
Please complete these missing tags
- Copyright Belongs To:
-
- See Also:
- Serialized Form
Constructor Summary |
BAddToolBarCE(Object source)
Creates a new BAddToolBarCE with the given tool bar
to add to the window manager. |
BAddToolBarCE(Object source,
int priority)
Creates a new BAddToolBarCE with the given tool bar
to add to the window manager. |
Method Summary |
void |
addButton(JComponent button)
Adds the given button the list of things to put on the tool
bar. |
void |
addSeparator()
This will add a separator to the tool bar |
Vector |
getButtons()
Gets the list of buttons to put on the tool bar |
int |
getPriority()
Gets the priority for this toolbars alignment |
Methods inherited from class au.edu.swin.synergy.kernel.BCommandEvent |
decrementThreadCount,
doComplete,
doInit,
getAutoComplete,
getCompletionObject,
getCompletionStatus,
getConnectionID,
getIndex,
getNetworkStatus,
getPipe,
getUndoable,
setAutoComplete,
setCompletionObject,
setCompletionStatus,
setConnectionID,
setIndex,
setNetworkStatus,
setPipe,
setThreadCount,
setUndoable |
BAddToolBarCE
public BAddToolBarCE(Object source)
- Creates a new BAddToolBarCE with the given tool bar
to add to the window manager.
- Parameters:
source
- The source of the event
BAddToolBarCE
public BAddToolBarCE(Object source,
int priority)
- Creates a new BAddToolBarCE with the given tool bar
to add to the window manager.
- Parameters:
source
- The source of the eventpriority
- The value can be any valid int, the higher the value, the more left aligned the tool bar
addButton
public void addButton(JComponent button)
- Adds the given button the list of things to put on the tool
bar. It is assumed that the button has all the listeners already on it
- Parameters:
button
- The button to add to the tool bar with the given name
getPriority
public int getPriority()
- Gets the priority for this toolbars alignment
- Returns:
- The relative priority of the tool bar
getButtons
public Vector getButtons()
- Gets the list of buttons to put on the tool bar
- Returns:
- A Vector containing either buttons or separators
addSeparator
public void addSeparator()
- This will add a separator to the tool bar