示例#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);
  }