Class AbstractDwcjPanel

All Implemented Interfaces:
Control, Enableable, HasAttribute, HasClassName, HasComputedStyle, HasControlText, HasDestroy, HasStyle, HasTooltip, HasVisibility
Direct Known Subclasses:
AppPanel, BBjPanelAdapter, Div

public abstract class AbstractDwcjPanel extends AbstractDwcControl
the base class for all panel implementations
  • Field Details

  • Constructor Details

    • AbstractDwcjPanel

      public AbstractDwcjPanel()
  • Method Details

    • add

      public AbstractDwcjPanel add(AbstractControl... ctrl)
      Used to add controls to a panel. Multiple controls can be passed to this function, and will be added in the order the arguments are passed (arg0 added first, arg1 second, etc...)
      Parameters:
      ctrl - the control(s) to be added
      Returns:
      the panel itself
    • setStyle

      public AbstractDwcjPanel setStyle(String property, String value)
      Description copied from interface: HasStyle
      Assigns specified value to the specified CSS property
      Specified by:
      setStyle in interface HasStyle
      Overrides:
      setStyle in class AbstractDwcControl
      Parameters:
      property - The CSS property to be changed
      value - The value of the selected CSS property
      Returns:
      The control itself
    • addClassName

      public AbstractDwcjPanel addClassName(String selector)
      Description copied from interface: HasClassName
      Adds a CSS class to the list of CSS classes for the control.
      Specified by:
      addClassName in interface HasClassName
      Overrides:
      addClassName in class AbstractDwcControl
      Returns:
      The control itself
    • removeClassName

      public AbstractDwcjPanel removeClassName(String selector)
      Description copied from interface: HasClassName
      Removes a CSS class from the list of CSS classes for the control.
      Specified by:
      removeClassName in interface HasClassName
      Overrides:
      removeClassName in class AbstractDwcControl
      Returns:
      The control itself
    • catchUp

      protected void catchUp() throws IllegalAccessException
      The catchUp method is used to replay attributes and settings that the API user might have added to a control before its creation. A control is not created before it's added to a panel. Anything that is added between instantiation of a control and its addition to a panel has to be recorded and replayed in this method
      Overrides:
      catchUp in class AbstractDwcControl
      Throws:
      IllegalAccessException - - thrown if an attempt is made to call this method more than once