org.odlabs.wiquery.ui.button
Class ButtonIcon

java.lang.Object
  extended by org.odlabs.wiquery.ui.button.ButtonIcon
All Implemented Interfaces:
Serializable, IComplexOption

public class ButtonIcon
extends Object
implements IComplexOption

$Id$

Bean for the icon option into the Button component

Since:
1.1
Author:
Julien Roche, Ernesto Reinaldo
See Also:
Serialized Form

Constructor Summary
ButtonIcon(String primary, String secondary)
          Default constructor
ButtonIcon(UiIcon primary, UiIcon secondary)
          Constructor accepting enumeration.
 
Method Summary
 CharSequence getJavascriptOption()
          Method retrieving the javascript representation of this complex option
 String getPrimary()
          Method retrieving the class for the primary icon
 String getSecondary()
          Method retrieving the class for the secondary icon
 void setHeaderClass(String primary)
          Method setting the class for the primary icon
 void setHeaderSelectedClass(String secondary)
          Method setting the class for the secondary icon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonIcon

public ButtonIcon(String primary,
                  String secondary)
Default constructor

Parameters:
primary - (can be null)
secondary - (can be null)

ButtonIcon

public ButtonIcon(UiIcon primary,
                  UiIcon secondary)
Constructor accepting enumeration.

Parameters:
primary -
secondary -
Method Detail

getPrimary

public String getPrimary()
Method retrieving the class for the primary icon

Returns:
the class for the primary icon

getSecondary

public String getSecondary()
Method retrieving the class for the secondary icon

Returns:
the class for the secondary icon

getJavascriptOption

public CharSequence getJavascriptOption()
Description copied from interface: IComplexOption
Method retrieving the javascript representation of this complex option

Specified by:
getJavascriptOption in interface IComplexOption
Returns:
the javascript

setHeaderClass

public void setHeaderClass(String primary)
Method setting the class for the primary icon

Parameters:
primary -

setHeaderSelectedClass

public void setHeaderSelectedClass(String secondary)
Method setting the class for the secondary icon

Parameters:
secondary -


Copyright © 2012. All Rights Reserved.