org.formaria.swt
Class CoolBar

java.lang.Object
  extended by org.eclipse.swt.widgets.CoolBar
      extended by org.formaria.swt.CoolBar
All Implemented Interfaces:
Appender

public class CoolBar
extends org.eclipse.swt.widgets.CoolBar
implements Appender

Draws a coolbar

Copyright (c) Formaria Ltd., 2008

License: see license.txt $Revision: 2.18 $


Constructor Summary
CoolBar(java.lang.Object parent)
          Constructs a new coolbar
 
Method Summary
 void addSeparator()
          Implemented from the Appender interface.
 void append(java.lang.Object o, java.lang.String name)
          Appends the object o to this item
protected  void checkSubclass()
          Suppress the subclassing exception
 java.lang.Object getObject(java.lang.String name)
          Get a child object by name
 java.lang.String getToolTip()
          Get the tooltip text
 void setAction(java.lang.Object action)
          Set an Action for the coolbar - does nothing
 void setName(java.lang.String name)
          Set the name of this object
 void setToolTip(java.lang.String text)
          Set the tooltip text
 void setup()
          Do any final setup needed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoolBar

public CoolBar(java.lang.Object parent)
Constructs a new coolbar

Parameters:
parent - parent object
Method Detail

checkSubclass

protected void checkSubclass()
Suppress the subclassing exception


setToolTip

public void setToolTip(java.lang.String text)
Set the tooltip text

Parameters:
text - the new text

getToolTip

public java.lang.String getToolTip()
Get the tooltip text

Returns:
the existing text if any

setAction

public void setAction(java.lang.Object action)
Set an Action for the coolbar - does nothing

Specified by:
setAction in interface Appender
Parameters:
action - the action object

setup

public void setup()
Do any final setup needed

Specified by:
setup in interface Appender

append

public void append(java.lang.Object o,
                   java.lang.String name)
Appends the object o to this item

Specified by:
append in interface Appender
Parameters:
o - the appended item
name - the name of the coolbar

addSeparator

public void addSeparator()
Implemented from the Appender interface. No separator needed at this level.

Specified by:
addSeparator in interface Appender

getObject

public java.lang.Object getObject(java.lang.String name)
Get a child object by name

Specified by:
getObject in interface Appender
Parameters:
name - the name of the coolbar
Returns:
the child

setName

public void setName(java.lang.String name)
Set the name of this object

Specified by:
setName in interface Appender
Parameters:
name - the item name