com.rednels.ofcgwt.client.model
Class ToolTip

java.lang.Object
  extended by com.rednels.ofcgwt.client.model.ToolTip
All Implemented Interfaces:
JSONizable

public class ToolTip
extends java.lang.Object
implements JSONizable

Base class for an OFC tooltip element


Nested Class Summary
static class ToolTip.MouseStyle
          Enumeration MouseStyle - used with tooltip.
 
Constructor Summary
ToolTip()
          Create a new ToolTip instance
ToolTip(ToolTip.MouseStyle mouse)
          Create a new ToolTip instance with the given mouse style
 
Method Summary
 com.google.gwt.json.client.JSONValue buildJSON()
          Build (and return) a JSONObject that contains all the items of this object.
 java.lang.String getBackgroundcolour()
          Gets the background colour.
 java.lang.String getBodystyle()
          Gets the body style.
 java.lang.String getColour()
          Gets the colour.
 ToolTip.MouseStyle getMouse()
          Gets the mouse.
 java.lang.Integer getStroke()
          Gets the stroke.
 java.lang.String getTitlestyle()
          Gets the title style.
 void setBackgroundcolour(java.lang.String backgroundcolour)
          Sets the background colour.
 void setBodystyle(java.lang.String bodystyle)
          Sets the body style.
 void setColour(java.lang.String colour)
          Sets the colour.
 void setMouse(ToolTip.MouseStyle mouse)
          Sets the mouse.
 void setStroke(java.lang.Integer stroke)
          Sets the stroke.
 void setTitlestyle(java.lang.String titlestyle)
          Sets the title style.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolTip

public ToolTip()
Create a new ToolTip instance


ToolTip

public ToolTip(ToolTip.MouseStyle mouse)
Create a new ToolTip instance with the given mouse style

Parameters:
mouse - MouseStyle
Method Detail

buildJSON

public com.google.gwt.json.client.JSONValue buildJSON()
Description copied from interface: JSONizable
Build (and return) a JSONObject that contains all the items of this object. If required, will call.buildJSON() on any contained JSONizable objects, thus producing an entire JSON tree.

Specified by:
buildJSON in interface JSONizable
Returns:
the JSONObject

getBackgroundcolour

public java.lang.String getBackgroundcolour()
Gets the background colour.

Returns:
the backgroundcolour

getBodystyle

public java.lang.String getBodystyle()
Gets the body style.

Returns:
the bodystyle

getColour

public java.lang.String getColour()
Gets the colour.

Returns:
the colour

getMouse

public ToolTip.MouseStyle getMouse()
Gets the mouse.

Returns:
the mouse

getStroke

public java.lang.Integer getStroke()
Gets the stroke.

Returns:
the stroke

getTitlestyle

public java.lang.String getTitlestyle()
Gets the title style.

Returns:
the titlestyle

setBackgroundcolour

public void setBackgroundcolour(java.lang.String backgroundcolour)
Sets the background colour.

Parameters:
backgroundcolour - the background colour to set

setBodystyle

public void setBodystyle(java.lang.String bodystyle)
Sets the body style.

Parameters:
bodystyle - the body style to set

setColour

public void setColour(java.lang.String colour)
Sets the colour.

Parameters:
colour - the colour to set

setMouse

public void setMouse(ToolTip.MouseStyle mouse)
Sets the mouse.

Parameters:
mouse - the mouse to set

setStroke

public void setStroke(java.lang.Integer stroke)
Sets the stroke.

Parameters:
stroke - the stroke to set

setTitlestyle

public void setTitlestyle(java.lang.String titlestyle)
Sets the title style.

Parameters:
titlestyle - the title style to set