1 package org.splat.wapp;
4 public class ToolButton extends ContextualMenu.ContextualItem {
6 // ==============================================================================================================================
8 // ==============================================================================================================================
10 protected ToolButton () {
11 // -----------------------
12 // myicon = "image.hr.png";
14 public ToolButton (String icon) {
15 // -------------------------------
18 // Optional attributes
19 public ToolButton action (String url) { // Enables the item
20 // -------------------------------------
24 public ToolButton argument (String arg) { // In case of tool-bar button only
25 // ---------------------------------------
29 public ToolButton tooltip (String name) {
30 // -----------------------------------------
35 // ==============================================================================================================================
36 // ToolButton specific getters
37 // ==============================================================================================================================
39 public String getArgument () {
40 // ----------------------------
41 return confirm; // Null if does no argument
43 public String getTooltip () { // Null if this is a separator
44 // ---------------------------