com.gwtext.client.widgets
Class Tool.ToolType

java.lang.Object
  extended by com.gwtext.client.widgets.Tool.ToolType
Enclosing class:
Tool

public static class Tool.ToolType
extends java.lang.Object

Type of tool to be displayed in the upper right corner of panels. For using stock tools, use the static variables defined in Tool class.
You need to create ToolType instances only to display your own icons (which should be 15x15 pixels).

Sample usage (for custom tool icons):

 
 Java
 ----
 // string passed to constructor should be part of the CSS class names
 Tool.ToolType flagType = new Tool.ToolType("flag");
 panel.addTool(new Tool(flagType, new Function() {
        public void execute() {
                Window.alert("Flag tool clicked");
        }
 }));
 
 
 CSS
 ---
 .x-tool-flag{background-image:url(images/flag.gif)}
 .x-tool-flag-over{background-image:url(images/flag-over.gif)}
 
 


Constructor Summary
Tool.ToolType(java.lang.String type)
           
 
Method Summary
 java.lang.String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tool.ToolType

public Tool.ToolType(java.lang.String type)
Method Detail

getType

public java.lang.String getType()