Package org.dwcj.interfaces
Interface HasAttribute
- All Known Implementing Classes:
AbstractDwcControl,AbstractDwcjPanel,AbstractDwclistControl,AppPanel,BBjPanelAdapter,Button,CheckableMenuItem,CheckBox,ColorPicker,ComboBox,DateEditBox,Div,FileChooser,FontChooser,GridExWidget,HtmlContainer,HtmlEdit,ImageControl,Label,ListBox,MenuButton,MenuItem,Navigator,NumericBox,NumericBoxSpinner,OpenFileDialog,PopupMenu,PrintPreview,ProgressBar,RadioButton,ScrollBar,Slider,StringEditBox,TabControl,TextArea,TextBox,TextComboBox,TreeView
public interface HasAttribute
Interface which facilitates implementation of behavior that allows
for access and mutation of HTML attributes on a control
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attribute) retrieve the value of the given attributesetAttribute(String attribute, String value) set an attribute value
-
Method Details
-
getAttribute
retrieve the value of the given attribute- Parameters:
attribute- the key/name of the attribute- Returns:
- the value
-
setAttribute
set an attribute value- Parameters:
attribute- the key/name of the attributevalue- the value- Returns:
- the control itself
-