org.gwtbootstrap3.client.ui.base.mixin
Class AttributeMixin<T extends UIObject>

java.lang.Object
  extended by org.gwtbootstrap3.client.ui.base.mixin.AttributeMixin<T>

public class AttributeMixin<T extends UIObject>
extends Object

Author:
Joshua Godi

Constructor Summary
AttributeMixin(T uiObject)
           
 
Method Summary
 String getAttribute(String attributeName)
          Get the attribute name on the UiObject
 boolean hasAttribute(String attributeName)
          Checks whether or not the UiObject has the element
 void removeAttribute(String attributeName)
          Removes the attribute from the UiObject
 void setAttribute(String attributeName, String attributeValue)
          Sets the attribute on the UiObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeMixin

public AttributeMixin(T uiObject)
Method Detail

setAttribute

public void setAttribute(String attributeName,
                         String attributeValue)
Sets the attribute on the UiObject

Parameters:
attributeName - attribute name
attributeValue - attribute value

getAttribute

public String getAttribute(String attributeName)
Get the attribute name on the UiObject

Parameters:
attributeName - attribute name
Returns:
attribute value

removeAttribute

public void removeAttribute(String attributeName)
Removes the attribute from the UiObject

Parameters:
attributeName - attribute name

hasAttribute

public boolean hasAttribute(String attributeName)
Checks whether or not the UiObject has the element

Parameters:
attributeName - attribute name
Returns:
true if has the attribute, false otherwise


Copyright © 2015. All rights reserved.