com.vaadin.client.debug.internal
Class DebugButton

java.lang.Object
  extended by Button
      extended by com.vaadin.client.debug.internal.DebugButton

public class DebugButton
extends Button

Simple extension of Button that is preconfigured with for use in VDebugWindow. Uses icon-font for icons, and allows title to be specified in the constructor.

Since:
7.1
Author:
Vaadin Ltd

Field Summary
protected  boolean active
           
 
Constructor Summary
DebugButton(Icon icon)
          Creates a Button with the given icon-font icon.
DebugButton(Icon icon, java.lang.String title)
          Creates a Button with the given icon-font icon and title (tooltip).
DebugButton(Icon icon, java.lang.String title, java.lang.String caption)
          Creates a Button with the given icon-font icon, title (tooltip), and caption.
 
Method Summary
 boolean isActive()
          Indicates wheter the Button is currently in its active state or not
 void setActive(boolean active)
          Adds or removes a stylename, indicating whether or not the button is in it's active state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

active

protected boolean active
Constructor Detail

DebugButton

public DebugButton(Icon icon)
Creates a Button with the given icon-font icon. The icon id will be used in the data-icon attribute of an <i> -tag.

Parameters:
icon - Identifier for the desired icon in an icon-font

DebugButton

public DebugButton(Icon icon,
                   java.lang.String title)
Creates a Button with the given icon-font icon and title (tooltip). The icon id will be used in the data-icon attribute of an <i> -tag.

Parameters:
icon - Identifier for the desired icon in an icon-font
title - Button title (tooltip)

DebugButton

public DebugButton(Icon icon,
                   java.lang.String title,
                   java.lang.String caption)
Creates a Button with the given icon-font icon, title (tooltip), and caption. The icon id will be used in the data-icon attribute of an <i> -tag.

Parameters:
icon - Identifier for the desired icon in an icon-font
title - Title (tooltip)
caption - Button baption
Method Detail

setActive

public void setActive(boolean active)
Adds or removes a stylename, indicating whether or not the button is in it's active state.

Parameters:
active -

isActive

public boolean isActive()
Indicates wheter the Button is currently in its active state or not

Returns:
true if the Button is active, false otherwise


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.