Package org.beryl.gui

Examples of org.beryl.gui.GUIException


      TableChangeEvent event = new TableChangeEvent(view, this, TableChangeEvent.INTERVAL_REMOVED, index, index, null);
      tableRow.removeModelChangeListener(notifier);
      rows.remove(index);
      fireModelEvent(event);
    } else {
      throw new GUIException("Row could not be found");
    }
  }
View Full Code Here


    } else if (name.startsWith("columnsize.")) {
      int column = columnKeys.indexOf(name.substring(11, name.length()));
      if (column != -1) {
        columnSizes.set(column, value);
      } else {
        throw new GUIException("Invalid column name while trying to set column size");
      }
    } else if ("verticalScrollBar".equals(name)) {
      scrollPane.setVerticalScrollBarPolicy(
        ((Boolean) value).booleanValue()
          ? JScrollPane.VERTICAL_SCROLLBAR_ALWAYS
View Full Code Here

  }

  public void removeValue(View view, Object value) throws GUIException {
    int index = list.indexOf(value);
    if (index == -1)
      throw new GUIException("Value could not be found");
    removeIndex(view, index);
  }
View Full Code Here

     
      try {
        Object value = method.invoke(valueObject, null);
        setValue(name, value);
      } catch (InvocationTargetException e) {
        throw new GUIException("Invocation target exception while trying to access value object data", e);
      } catch (IllegalAccessException e) {
        throw new GUIException("Illegal access exception while trying to access value object data", e);
      }
    }
  }
View Full Code Here

  public void addChild(Widget widget, Object constraint) throws GUIException {
    if (widget instanceof WizardPage) {
      wizard.addPage((WizardPage) widget);
      addChild(widget);
    } else {
      throw new GUIException("Only WizardPage children are allowed inside a WizardItem");
    }
  }
View Full Code Here

      Separator separator = (Separator) widget;
      separator.menuSeparator = new JPopupMenu.Separator();
      menu.add(separator.menuSeparator);
      addChild(widget);
    } else {
      throw new GUIException("Only MenuItem and Separator children allowed");
    }
  }
View Full Code Here

      } else if (axis.equals(AXIS_VERTICAL)) {
        minimumSize = new Dimension(0 ,0);
        preferredSize = new Dimension(0, 0);
        maximumSize = new Dimension(0, Short.MAX_VALUE);
      } else {
        throw new GUIException("Unknown spacer axis [" + axis + "]");
      }
    } else if (type.equals(TYPE_STRUT)) {
      if (axis.equals(AXIS_HORIZONTAL)) {
        minimumSize = new Dimension(size ,0);
        preferredSize = new Dimension(size, 0);
        maximumSize = new Dimension(size, Short.MAX_VALUE);
      } else if (axis.equals(AXIS_VERTICAL)) {
        minimumSize = new Dimension(0, size);
        preferredSize = new Dimension(0, size);
        maximumSize = new Dimension(Short.MAX_VALUE, size);
      } else {
        throw new GUIException("Unknown spacer axis [" + axis + "]");
      }
    } else {
      throw new GUIException("Unknown spacer type [" + type + "]");
    }
    if (isConstructed)
      spacer.invalidate();
    isConstructed = true;
  }
View Full Code Here

  public void addChild(Widget widget, Object constraint) throws GUIException {
    if (widget instanceof OutlookPanel) {
      cascade.addPanel((JCascadePanel) widget.getRealWidget());
      addChild(widget);
    } else {
      throw new GUIException("OutlookBar can only have OutlookPanel children");
    }
  }
View Full Code Here

      Separator separator = (Separator) widget;
      separator.menuSeparator = new JPopupMenu.Separator();
      popupMenu.add(separator.menuSeparator);
      addChild(widget);
    } else {
      throw new GUIException("Only MenuItem and Separator children allowed");
    }
  }
View Full Code Here

    RE r = null;

    try {
      r = new RE(sPattern);
    } catch (Exception e) {
      throw new GUIException("Error while constructing a regular expression", e);
    }

    if (r != null) {
      if (!r.isMatch(validationString)) {
        throw new ValidationException(view, InternationalizationManager.getString("xmlgui.validator.email.invalid"));
View Full Code Here

TOP

Related Classes of org.beryl.gui.GUIException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.