Package org.w3c.tools.widgets

Examples of org.w3c.tools.widgets.MessagePopup


      if (classname.length() > 0) {
    try {
        Class c = Class.forName(classname);
        return c;
    } catch (ClassNotFoundException ex) {
        (new MessagePopup("Error","Class not found : "+
              classname)).show();
        return null;
    }
      }
  return null;
View Full Code Here


    }

    public void renameNode(RemoteResourceWrapper rw, String label) {
        try {
    if (rw.getResource().isContainer()) {
      (new MessagePopup("WARNING: you have changed the identifier. "+
            "To access the sons, close and reopen the node")
        ).show();
    }
  } catch (RemoteAccessException ex) {
    // ??
View Full Code Here

    quit();
      }
  }

  protected void error(String msg) {
      (new MessagePopup("Error: "+msg)).show();
  }
View Full Code Here

  protected void error(String msg, Exception ex) {
      error(msg+": "+ex.getMessage());
  }

  protected void msg(String msg) {
      (new MessagePopup(msg)).show();
  }
View Full Code Here

    abstract public String getTitle();

    abstract public Component getComponent();

    protected void errorPopup(String name, Exception ex) {
      (new MessagePopup(name+" : "+ex.getMessage())).show();
    }
View Full Code Here

    protected void errorPopup(String name, Exception ex) {
      (new MessagePopup(name+" : "+ex.getMessage())).show();
    }

    protected void msgPopup(String name) {
      (new MessagePopup(name)).show();
    }
View Full Code Here

      rh[i].commitChanges();
        } catch (RemoteAccessException ex) {
      if( ex.getMessage().equals("Unauthorized")) {
          authorized = false;
      } else {
          (new MessagePopup("Exception : ",
                ex.getMessage())).show();
          throw ex; // another reason, throw it
      }
        } finally {
      if(!authorized) {
View Full Code Here

      rh[i].initialize(rrw, props);
        } catch (RemoteAccessException ex) {
      if( ex.getMessage().equals("Unauthorized")) {
          authorized = false;
      } else {
          (new MessagePopup("Exception : ",
                ex.getMessage())).show();
          throw ex; // another reason, throw it
      }
        } finally {
      if(!authorized) {
View Full Code Here

    rrw.getResource().reindex(true);
      } catch (RemoteAccessException ex) {
    if( ex.getMessage().equals("Unauthorized")) {
        authorized = false;
    } else {
        (new MessagePopup("Exception : ",
              ex.getMessage())).show();
        // must throw a fancy error
    }
      } finally {
    if(!authorized) {
View Full Code Here

    rrw.getResource().delete();
      } catch (RemoteAccessException ex) {
    if( ex.getMessage().equals("Unauthorized")) {
        authorized = false;
    } else {
        (new MessagePopup("Exception : ",
              ex.getMessage())).show();
        // must throw a fancy error
    }
      } finally {
    if(!authorized) {
View Full Code Here

TOP

Related Classes of org.w3c.tools.widgets.MessagePopup

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.