Пример #1
0
  @Override
  public void setAttribute(String attr, Object value) {
    if (WidgetAttributes.SUBMENU_ACTION_ATTR.equals(attr)
        || WidgetAttributes.SUBMENU_DELAY_ATTR.equals(attr)) {
      getParentGroup().setAttribute(attr, value);
    }

    super.setAttribute(attr, value);
  }
Пример #2
0
  @Override
  public Object getAttribute(String attr) {
    if (WidgetAttributes.SUBMENU_ACTION_ATTR.equals(attr)
        || WidgetAttributes.SUBMENU_DELAY_ATTR.equals(attr)) {
      return getParentGroup().getAttribute(attr);
    }

    return super.getAttribute(attr);
  }