Package org.beryl.gui

Examples of org.beryl.gui.GUIException


        rootNode = (TreeItem) widget;
        rootNode.setTree(this);
        tree.setModel(new DefaultTreeModel(rootNode, false));
        addChild(rootNode);
      } else {
        throw new GUIException("A Tree can only have one root node");
      }
    } else {
      throw new GUIException("Only TreeItem children are supported");
    }
  }
View Full Code Here


    panel.setBorder(GROUP_BORDER);
  }

  public void addChild(Widget widget, Object constraint) throws GUIException {
    if (constraint != null)
      throw new GUIException("Constraints not supported inside a group");
    addChild(widget);
    if (widget instanceof Button)
      buttons.add(widget);
    else
      widgets.add(widget);
View Full Code Here

        addChild(widget);
      } finally {
        sendEvents = true;
      }
    } else {
      throw new GUIException("Only Item children are allowed inside an IconView");
    }
  }
View Full Code Here

  public void removeChildWidget(Widget widget) throws GUIException {
    if (listDataModel != null) {
      listDataModel.removeValue(this, widget);
      super.removeChildWidget(widget);
    } else {
      throw new GUIException("There are no static items to remove");
    }
  }
View Full Code Here

  private WizardPageAdapter adapter = null;
 
  public WizardPage(Widget parent, String name) throws GUIException {
    super(parent, name);
    if (name == null)
      throw new GUIException("WizardPage widgets need to have a name");
  }
View Full Code Here

    if (widget instanceof TreeItem) {
      TreeItem treeItem = (TreeItem) widget;
      treeItem.setTree(tree);
      addChild(widget);
    } else {
      throw new GUIException("Only TreeItem children are supported");
    }
  }
View Full Code Here

      try {
        Class lnfClass = Class.forName(clazz);
        LookAndFeel lnfInstance = (LookAndFeel) lnfClass.newInstance();
        return lnfInstance;
      } catch (Exception e) {
        throw new GUIException("Error while creating Look And Feel", e);
      }
    }
View Full Code Here

      MetalLookAndFeel lnf = (MetalLookAndFeel) super.create(themeClass, licenseCode);
      try {
        MetalLookAndFeel.setCurrentTheme((MetalTheme) Class.forName(themeClass).newInstance());
        return lnf;
      } catch (Exception e) {
        throw new GUIException("Error while setting theme", e);
      }
    }
View Full Code Here

        LookAndFeel lnfInstance =
          (LookAndFeel) constructor.newInstance(new Object[] { Class.forName(themeClass).newInstance()});

        return lnfInstance;
      } catch (Exception e) {
        throw new GUIException("Error while setting theme", e);
      }
    }
View Full Code Here

      File file = DialogUtils.showSaveFileDialog(frame, "properties");
      if (file != null) {
        properties.store(new FileOutputStream(file), "Internationalization file created using the Builder");
      }
    } catch (Exception e) {
      throw new GUIException("Error while saving file", e);
    }
  }
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.