Package org.jabusuite.webclient.controls

Examples of org.jabusuite.webclient.controls.JbsExtent


  public FmJbsBaseObjectList(String title, JbsExtent width, JbsExtent height) {
    super(title,width,height);
  }
 
  public FmJbsBaseObjectList(String title) {
    super(title,new JbsExtent(FmJbsBaseObjectList.STDWIDTH),new JbsExtent(FmJbsBaseObjectList.STDHEIGHT));
  }
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);
        colText.add(row);
    }
View Full Code Here

    protected void initForm() {
        super.initForm();
        this.setMinimizable(false);
        this.setMaximizable(false);

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

        this.add(spMain);
        spMain.add(initPnButtons());
       
        pnMain = new ContentPane();
View Full Code Here

    protected ContentPane initPnButtons() {
        pnButtons = new ContentPane();
        Row mainRow = new Row();
        mainRow.setAlignment(new Alignment(Alignment.CENTER, 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) {
View Full Code Here

        GridLayoutData layoutData = new GridLayoutData();
        layoutData.setAlignment(new Alignment(Alignment.RIGHT, Alignment.CENTER));

        grdSummary = new JbsGrid(2);
        grdSummary.setInsets(new Insets(5, 5));
        grdSummary.setColumnWidth(0, new JbsExtent(300));
        grdSummary.add(new Label(JbsL10N.getString("Transaction.sumSalesPrice") + ":"));
        lblSumSalesPrice = new Label();
        lblSumSalesPrice.setLayoutData(layoutData);
        grdSummary.add(lblSumSalesPrice);
        grdSummary.add(new Label(JbsL10N.getString("Transaction.sumCostPrice") + ":"));
View Full Code Here

        super();
        initPanel();
    }

    protected void initPanel() {
        SplitPane spMain = new SplitPane(SplitPane.ORIENTATION_VERTICAL, new JbsExtent(23));
        spMain.setSeparatorWidth(new JbsExtent(1, JbsExtent.PX));
        this.add(spMain);

        Row rowTitle = new Row();
        rowTitle.setStyleName("TitlePane");
        Label lblTitle = new Label("OpenJBS");
        lblTitle.setStyleName("TitleLabel.Main");
        rowTitle.add(lblTitle);

        lblModuleName = new Label("");
        lblModuleName.setStyleName("TitleLabel.Main");
        rowTitle.add(lblModuleName);
       
        spMain.add(rowTitle);

        pnModuleArea = new PnModuleArea();

        if ((ClientGlobals.getUser().getStartModule()!=null) && (ClientGlobals.getUser().canRead(ClientGlobals.getUser().getStartModule())))
            pnModuleArea.setPnCurrentModule(ClientGlobals.getUser().getStartModule().getClientPanel());
        else
            pnModuleArea.setPnCurrentModule(new PnWelcome());
       
        SplitPane spApp = new SplitPane(SplitPane.ORIENTATION_HORIZONTAL, new JbsExtent(200));
        spApp.setSeparatorWidth(new JbsExtent(1, JbsExtent.PX));
        spMain.add(spApp);

        PnModules pnModules = new PnModules(pnModuleArea);
        spApp.add(pnModules);

        spApp.add(pnModuleArea);

       
       
        SplitPane spSub = new SplitPane(SplitPane.ORIENTATION_VERTICAL_BOTTOM_TOP, new JbsExtent(23));
        spSub.add(new StatusBar());
        spSub.add(spApp);

        spMain.add(spSub);
View Full Code Here

    protected void createComponents() {
        this.setSaveDirectly(true);
        this.dfDate = new JbsDateField();
        this.txYourReference = new JbsTextField();
        this.txLetterSubject = new JbsTextField();
        this.txLetterSubject.setWidth(new JbsExtent(95,JbsExtent.PERCENT));
        this.txLetterSalutation = new JbsTextField();
        this.txLetterSalutation.setWidth(new JbsExtent(95,JbsExtent.PERCENT));
        this.txLetterText = new JbsRichTextArea();
        this.txLetterText.setWidth(new JbsExtent(95,JbsExtent.PERCENT));
        this.txLetterText.setHeight(new JbsExtent(400,JbsExtent.PX));
        this.lblContact = new JbsLabel();
        this.selContact = new JbsContactSelectField();
       
        this.setBtnPrint(new JbsObjectToolPaneButton("print.png", JbsL10N.getString("Generic.print") , false));
        this.getBtnPrint().addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent arg0) {
                printLetter();
            }
        });
       
        this.setSpMain(new SplitPane());
        this.getSpMain().setOrientation(SplitPane.ORIENTATION_HORIZONTAL_RIGHT_LEFT);
        this.getSpMain().setSeparatorPosition(new JbsExtent(PnModule.STD_TOOLPANEWIDTH,JbsExtent.PX));
        this.getSpMain().setSeparatorWidth(new JbsExtent(1,JbsExtent.PX));
       
        this.setToolPane(new JbsObjectToolPane());
       
        this.setShowContactField(true);
    }
View Full Code Here

        ContentPane cpMain = new ContentPane();
        cpMain.setInsets(ClientGlobals.getStandardInsets());
       
        Column colMain = new Column();
        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setColumnWidth(0, new JbsExtent(150));
        lblContact.setText(JbsL10N.getString("AddressLetter.contact"));
        grdMain.add(lblContact);
        grdMain.add(this.selContact);
        grdMain.add(new JbsLabel(JbsL10N.getString("AddressLetter.letterDate")));
        grdMain.add(this.dfDate);
View Full Code Here

    protected void initPanel() {
        ContentPane cpStdData = new ContentPane();

        JbsGrid grdMain = new JbsGrid(3);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(150));

        grdMain.add(new Label(JbsL10N.getString("PaymentTerm.days1") + " / " + JbsL10N.getString("PaymentTerm.discount1")));
        grdMain.add(this.txDays1);
        grdMain.add(this.txDiscount1);
        grdMain.add(new Label(JbsL10N.getString("PaymentTerm.days2") + " / " + JbsL10N.getString("PaymentTerm.discount2")));
View Full Code Here

    public StatusBar() {
        super();
        this.setStyleName("StatusBar");
       
        JbsGrid grdMain = new JbsGrid(5);
        grdMain.setColumnWidth(0, new JbsExtent(60));
        grdMain.setColumnWidth(1, new JbsExtent(250));
        grdMain.setColumnWidth(2, new JbsExtent(70));
        grdMain.setColumnWidth(3, new JbsExtent(150));
       
        grdMain.add(new Label(JbsL10N.getString("StatusBar.companyName")+": "));
        lblCompany = new Label();
        grdMain.add(lblCompany);
       
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.