Package org.oxbow.swingbits.dialog.task

Examples of org.oxbow.swingbits.dialog.task.TaskDialog


    addActionListener( new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {

        TaskDialog dlg = TaskDialog.getInstance((Component) e.getSource());
        if ( dlg != null ) {
          dlg.setResult(CommandLinkButton.this.link);
          //dlg.setResult( TaskDialog.StandardCommand.OK );
          dlg.setVisible(false);
        }

      }

    });
View Full Code Here


  public void setCommands( Set<? extends TaskDialog.Command> commands, boolean lockButtonSize ) {

    pCommands.removeAll();

    String group = lockButtonSize? "sgx commands, ": "";
    TaskDialog owner = getOwner();
    for( final TaskDialog.Command c: commands) {
      String tag = c.getTag() == null? "": c.getTag().toString();
      JButton button = new JButton( new CommandAction(c, owner) );
      pCommands.add( button, group + "aligny top, " + tag  );
    }
View Full Code Here

TOP

Related Classes of org.oxbow.swingbits.dialog.task.TaskDialog

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.