Example #1
0
 public void setButtons(IESequenceWidget buttons) {
   this.buttons = buttons;
   if (buttons != null) {
     buttons.setParent(this);
     buttons.setWOComponent(getWOComponent());
   }
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * 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);
 }
Example #4
0
 /**
  * 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);
 }
Example #5
0
 public boolean hasButtons() {
   return buttons != null && !buttons.isEmpty();
 }