public void setButtons(IESequenceWidget buttons) { this.buttons = buttons; if (buttons != null) { buttons.setParent(this); buttons.setWOComponent(getWOComponent()); } }
/** * Overrides getAllButtons * * @see org.openflexo.foundation.ie.widget.ButtonedWidgetInterface#getAllButtons() */ @Override public Vector<IEHyperlinkWidget> getAllButtons() { Vector<IEHyperlinkWidget> v = new Vector<IEHyperlinkWidget>(); Enumeration en = buttons.getAllNonSequenceWidget().elements(); while (en.hasMoreElements()) { IWidget w = (IWidget) en.nextElement(); if (w instanceof IEHyperlinkWidget) { v.add((IEHyperlinkWidget) w); } } return v; }
/** * Overrides removeButton * * @see * org.openflexo.foundation.ie.widget.ButtonedWidgetInterface#removeButton(org.openflexo.foundation.ie.widget.IEButtonWidget) */ @Override public void removeButton(IEHyperlinkWidget button) { buttons.removeFromInnerWidgets(button); }
/** * Overrides insertButtonAtIndex * * @see * org.openflexo.foundation.ie.widget.ButtonedWidgetInterface#insertButtonAtIndex(org.openflexo.foundation.ie.widget.IEButtonWidget, * int) */ @Override public void insertButtonAtIndex(IEHyperlinkWidget button, int index) { buttons.insertElementAt(button, index); }
public boolean hasButtons() { return buttons != null && !buttons.isEmpty(); }