/** * @since 8.0.0 */ @Override public void setWidth(String width) { throw new UiException("Not allowed to set width in auxhead."); }
/** * @since 8.0.0 */ @Override public void setVflex(String flex) { throw new UiException("Not allowed to set vflex in auxhead."); }
public void beforeChildAdded(Component child, Component refChild) { if (child instanceof Treerow) { if (_treerow != null && _treerow != child) throw new UiException("Only one treerow is allowed: " + this); } else if (child instanceof Treechildren) { if (_treechildren != null && _treechildren != child) throw new UiException("Only one treechildren is allowed: " + this); } else { throw new UiException("Unsupported child for tree item: " + child); } super.beforeChildAdded(child, refChild); }
public void beforeChildAdded(Component child, Component refChild) { if (child instanceof Menupopup) { if (_popup != null && _popup != child) throw new UiException("Only one menupopup is allowed: " + this); } else { throw new UiException("Unsupported child for menu: " + child); } super.beforeChildAdded(child, refChild); }
private static void checkAuExtension(String prefix, AuExtension extension) { if (prefix == null || !prefix.startsWith("/") || prefix.length() < 2 || "/_".equals(prefix) || extension == null) throw new UiException("Ilegal prefix: " + prefix); if (ClassWebResource.PATH_PREFIX.equalsIgnoreCase(prefix)) throw new IllegalArgumentException(ClassWebResource.PATH_PREFIX + " is reserved"); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Borderlayout)) throw new UiException("Wrong parent: " + parent); super.beforeParentChanged(parent); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Treechildren)) throw new UiException("Wrong parent: " + parent); super.beforeParentChanged(parent); }
public void beforeChildAdded(Component child, Component refChild) { if (!(child instanceof Menuitem) && !(child instanceof Menuseparator) && !(child instanceof Menu)) throw new UiException("Unsupported child for menupopup: " + child); super.beforeChildAdded(child, refChild); }
public void beforeChildAdded(Component newChild, Component refChild) { if (newChild instanceof Detail) { if (_detail != null && _detail != newChild) throw new UiException("Only one detail is allowed: " + this); } super.beforeChildAdded(newChild, refChild); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Treeitem)) throw new UiException("Wrong parent: " + parent); super.beforeParentChanged(parent); }
public void beforeChildAdded(Component newChild, Component refChild) { if (!(newChild instanceof Bandpopup)) throw new UiException("Unsupported child for Bandbox: " + newChild); if (getFirstChild() != null) throw new UiException("At most one bandpopup is allowed, " + this); super.beforeChildAdded(newChild, refChild); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Listbox)) throw new UiException("Listitem's parent must be Listbox, not " + parent); super.beforeParentChanged(parent); }
public void beforeChildAdded(Component child, Component refChild) { if (!(child instanceof Anchorchildren)) throw new UiException("Unsupported child for Anchorlayout: " + child); super.beforeChildAdded(child, refChild); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Combobox)) throw new UiException("Comboitem's parent must be Combobox"); super.beforeParentChanged(parent); }
public void beforeChildAdded(Component newChild, Component refChild) { if (!(newChild instanceof Popup)) throw new UiException("Unsupported child for Combobutton: " + newChild); if (getFirstChild() != null) throw new UiException("At most one popup is allowed, " + this); super.beforeChildAdded(newChild, refChild); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Bandbox)) throw new UiException("Bandpopup's parent must be Bandbox"); super.beforeParentChanged(parent); } }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Grid)) throw new UiException("Unsupported parent for rows: " + parent); super.beforeParentChanged(parent); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Columns)) throw new UiException("Unsupported parent for column: " + parent); super.beforeParentChanged(parent); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Listbox)) throw new UiException("Wrong parent: " + parent); super.beforeParentChanged(parent); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Tree) && !(parent instanceof Treeitem)) throw new UiException("Wrong parent: " + parent); super.beforeParentChanged(parent); }