/** * @since 8.0.0 */ @Override public void setWidth(String width) { throw new UiException("Not allowed to set width 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); }
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 beforeChildAdded(Component child, Component refChild) { if (!(child instanceof Menu) && !(child instanceof Menuitem) && !(child instanceof Menuseparator)) throw new UiException("Unsupported child for menubar: " + child); super.beforeChildAdded(child, refChild); }
public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Panel)) throw new UiException("Wrong parent: " + parent); super.beforeParentChanged(parent); }
/** * Sets the selected tab panel. */ public void setSelectedPanel(Tabpanel panel) { if (panel == null) throw new IllegalArgumentException("null tabpanel"); if (panel.getTabbox() != this) throw new UiException("Not a child: " + panel); final Tab tab = panel.getLinkedTab(); if (tab != null) setSelectedTab(tab); }
/** Deselects all of the currently selected radio buttons and selects * the given radio button. */ public void setSelectedItem(Radio item) { if (item == null) { setSelectedIndex(-1); } else { if (item.getRadiogroup() != this) throw new UiException("Not a child: " + item); item.setSelected(true); } }
private Label autoFirstCell() { Component cell = getFirstChild(); if (cell == null || cell instanceof Label) { if (cell == null) cell = new Label(); cell.applyProperties(); cell.setParent(this); return (Label) cell; } throw new UiException("Unsupported child for setLabel: " + cell); } }