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 Details

    • getAttribute

      String getAttribute(String attribute)
      retrieve the value of the given attribute
      Parameters:
      attribute - the key/name of the attribute
      Returns:
      the value
    • setAttribute

      HasAttribute setAttribute(String attribute, String value)
      set an attribute value
      Parameters:
      attribute - the key/name of the attribute
      value - the value
      Returns:
      the control itself