Package org.jabusuite.webclient.controls

Examples of org.jabusuite.webclient.controls.JbsButton


        pnButtons = new JbsContentPane();
        Row mainRow = new Row();
        mainRow.setAlignment(new Alignment(Alignment.RIGHT, Alignment.DEFAULT));
        mainRow.setInsets(new Insets(new JbsExtent(5), new JbsExtent(5)));

        btnOK = new JbsButton(JbsL10N.getString("Generic.ok"));
        btnOK.setAlignmentHorizontal(Alignment.CENTER);
        btnOK.setWidth(new JbsExtent(80));
        btnOK.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                postDialog();
            }
        });
        mainRow.add(btnOK);

        btnCancel = new JbsButton(JbsL10N.getString("Generic.cancel"));
        btnCancel.setAlignmentHorizontal(Alignment.CENTER);
        btnCancel.setWidth(new JbsExtent(80));
        btnCancel.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;
View Full Code Here


        this.getTextArea().setDisabledBackground(this.getTextArea().getBackground());
        this.getTextArea().setDisabledForeground(this.getTextArea().getForeground());
        this.getTextArea().setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        this.getTextArea().setHeight(new JbsExtent(200, JbsExtent.PX));

        this.setBtnSelect(new JbsButton("..."));
        this.getBtnSelect().setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        this.getBtnSelect().addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                editTexts();
View Full Code Here

        this.getTextArea().setDisabledBackground(this.getTextArea().getBackground());
        this.getTextArea().setDisabledForeground(this.getTextArea().getForeground());
        this.getTextArea().setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        this.getTextArea().setHeight(new JbsExtent(200, JbsExtent.PX));

        this.setBtnSelect(new JbsButton("..."));
        this.getBtnSelect().setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        this.getBtnSelect().addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                editTexts();
View Full Code Here

    private static final long serialVersionUID = 3824667588370912884L;
    private JbsButton btnSelect;
    private JbsTextField textField;

    public JbsSelectField() {
        btnSelect = new JbsButton("...");
        textField = new JbsTextField();

        this.getTextField().setDisabledBackground(this.getTextField().getBackground());
        this.getTextField().setDisabledForeground(this.getTextField().getForeground());
View Full Code Here

    public static final JbsOptionPane showMessageDialog(Component parent, Object message, String title, int messageType, Throwable exception) {
        JbsOptionPane optionPane = new JbsOptionPane(message, DEFAULT_OPTION, messageType, exception);
        optionPane.setTitle(title);
        ApplicationInstance.getActive().getDefaultWindow().getContent().add(optionPane);

        JbsButton defaultButton = optionPane.getDefaultButton();
        if (defaultButton != null) {
            ApplicationInstance.getActive().setFocusedComponent(defaultButton);
        }

View Full Code Here

        JbsOptionPane.setTitle(title);

        ApplicationInstance.getActive().getDefaultWindow().getContent().add(JbsOptionPane);

        // Currently doesn't work - echo2 problem?
        JbsButton defaultButton = JbsOptionPane.getDefaultButton();
        if (defaultButton != null) {
            ApplicationInstance.getActive().setFocusedComponent(defaultButton);
        }

        return JbsOptionPane;
View Full Code Here

        } else {
            messageColumn.add(new Label(message.toString()));
        }
        final int labelCount = messageColumn.getComponentCount();
       
        JbsButton btnDetails = null;
        if (exception!=null) {
            btnDetails = new JbsButton("Details...");
            btnDetails.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    showException(exception);
                }
            });
View Full Code Here

            textWindow.showForm();
        }
    }

    private JbsButton createButton(String messageKey, String option) {
        JbsButton button = new JbsButton(messageKey);
        button.setActionCommand(option);
        button.setInsets(new Insets(8, 0, 8, 0))// ltrb
        button.addActionListener(this);

        return button;
    }
View Full Code Here

  }
 
  protected void createComponents() {
    lbCompanies= new LbCompanies();
   
    btnAdd = new JbsButton("+");
    btnAdd.setWidth(new JbsExtent(20));
    btnAdd.addActionListener(new ActionListener() {

      private static final long serialVersionUID = 1L;

      public void actionPerformed(ActionEvent arg0) {
        addCompany();
      }
     
    });
   
    btnDelete = new JbsButton("-");
    btnDelete.setWidth(new JbsExtent(20));
    btnDelete.addActionListener(new ActionListener() {

      private static final long serialVersionUID = 1L;
View Full Code Here

        //lbGroups = new LbUserGroups();
        groupEditor = new GroupEditor();
        cbbMainGroup = new GroupCombo();
        companyEditor = new CompanyEditor();

        btnAddGroup = new JbsButton("+");
        btnAddGroup.addActionListener(new ActionListener() {

            private static final long serialVersionUID = 1L;

            public void actionPerformed(ActionEvent arg0) {
                FmJbsBaseObjectList fmSelectGroup = new FmJbsBaseObjectList(JbsL10N.getString("JbsUserGroup.selectGroup"));
                PnUserGroupList pnUserGroupList = new PnUserGroupList();
                pnUserGroupList.setToolPaneVisible(ClientGlobals.getUser().isRoot());
                fmSelectGroup.setPnList(pnUserGroupList);
                fmSelectGroup.showForm();
                fmSelectGroup.addActionListener(new ActionListener() {

                    private static final long serialVersionUID = 1L;

                    public void actionPerformed(ActionEvent arg0) {
                        System.out.println(arg0.getActionCommand());
                    }
                });
            }
        });
        btnDeleteGroup = new JbsButton("-");

        contactSelectField = new JbsContactSelectField();
        selStartModule = new SelModule();
    }
View Full Code Here

TOP

Related Classes of org.jabusuite.webclient.controls.JbsButton

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.