Package org.jabusuite.webclient.controls

Examples of org.jabusuite.webclient.controls.JbsExtent


    }

    public void addSeparator(String groupName) {
        Row row = new Row();
        ColumnLayoutData layout = new ColumnLayoutData();
        layout.setHeight(new JbsExtent(15, JbsExtent.PX));
        row.setLayoutData(layout);
        this.addControl(groupName, row);
    }
View Full Code Here


    private static final long serialVersionUID = 1059900199209211798L;
    public static final int STDWIDTH = 750;
    public static final int STDHEIGHT = 580;

    public JbsWindow(String title) {
        super(title, new JbsExtent(STDWIDTH), new JbsExtent(STDHEIGHT));
        //this.setMaximumWidth(new (.PERCENT));
        //this.setDefaultCloseOperation(Window.DISPOSE_ON_CLOSE);
        this.initForm();
    }
View Full Code Here

        } catch (Exception e) {
            logger.debug(Styles.getIconPath() + imgFileName + " not found.");
        }
        this.setStyleName("Default");
        this.setText(title);
        this.setWidth(new JbsExtent(100, JbsExtent.PERCENT));
        //this.setHeight(new (48, .PX));
        this.setStdColor(this.getBackground());
        this.setAlignment(new Alignment(Alignment.LEFT, Alignment.CENTER));
    }
View Full Code Here

        this.setMaximizable(false);
        this.setKeystrokeListener(this.createKeyStrokeListener());
        this.setPostOnEnterKey(true);
        this.setCancelOnEscKey(true);

        SplitPane spMain = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new JbsExtent(45));

        this.add(spMain);
        spMain.add(initPnButtons());

        pnMain = new JbsContentPane();
View Full Code Here

    protected JbsContentPane initPnButtons() {
        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;

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

    }
   
    public void addBlankLine() {
        Row row = new Row();
        ColumnLayoutData layout = new ColumnLayoutData();
        layout.setHeight(new JbsExtent(15,JbsExtent.PX));
        row.setLayoutData(layout);
        colMain.add(row);
    }
View Full Code Here

        langStrings = new JbsLangStrings();
       
        this.setTextArea(new JbsRichTextArea());
        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

            dtMain.setSelectedDate(selectedDate);
        }
    }

    public FmSelectDate(String title) {
        super(title, new JbsExtent(200), new JbsExtent(200));
    }
View Full Code Here

        colMain.setInsets(new Insets(5, 5));

        Iterator<JbsLangEntryHelper> it = this.getTextFields().iterator();
        while (it.hasNext()) {
            JbsLangEntryTextArea txtField = (JbsLangEntryTextArea) it.next();
            txtField.setWidth(new JbsExtent(400, JbsExtent.PX));
            txtField.setHeight(new JbsExtent(300, JbsExtent.PX));
            colMain.add(new Label(txtField.getLanguage().getName()));
            colMain.add(txtField);
        }

        this.getPnMain().add(colMain);
View Full Code Here

        langStrings = new JbsLangStrings();

        this.setTextArea(new JbsRichTextArea());
        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

TOP

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

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.