Package org.jabusuite.webclient.controls

Examples of org.jabusuite.webclient.controls.JbsExtent


    }

    protected void initPanel() {
        Grid grdMain = new Grid(2);
        grdMain.setInsets(new nextapp.echo2.app.Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(300));

        Iterator<JbsLangEntryHelper> it = this.getTextFields().iterator();
        while (it.hasNext()) {
            JbsLangEntryTextField txtField = (JbsLangEntryTextField) it.next();
            grdMain.add(new Label(txtField.getLanguage().getName()));
View Full Code Here


    private static final long serialVersionUID = -4933280397139021471L;
    //private Row rowMain;

    public JbsToolbar() {
        super();
        this.setInsets(new Insets(new JbsExtent(5),new JbsExtent(0)));
        /*
        rowMain = new Row();
        rowMain.setStyleName("ToolBar");
        this.add(rowMain);
         */
 
View Full Code Here

    public FmEditJbsBaseObject(String title, JbsExtent width, JbsExtent height) {
        super(title, width, height);
    }

    public FmEditJbsBaseObject(String title) {
        super(title, new JbsExtent(JbsWindow.STDWIDTH), new JbsExtent(JbsWindow.STDHEIGHT));
    //super(title,new JbsExtent(95,JbsExtent.PERCENT),new JbsExtent(95,JbsExtent.PERCENT));
    }
View Full Code Here

    protected EventListenerList listenerList = new EventListenerList();
    protected PnPermissionsEdit pnPermissions;
   
    public PnEditJbsObject(DlgState state) {
        super();
        this.setInsets(new Insets(new JbsExtent(8, JbsExtent.PX)));
        this.setDlgState(state);
        this.setJbsBaseObject(null);
        this.setPnPermissions(null);
        createComponents();
        this.initPanel();
View Full Code Here

    public static final int WIDTH = 950;
    public static final int HEIGHT = 700;
   

    public FmTransactionEdit(String title) {
        super(title,new JbsExtent(FmTransactionEdit.WIDTH,JbsExtent.PX),new JbsExtent(FmTransactionEdit.HEIGHT,JbsExtent.PX));
        //this.setHeight(arg0);
    }
View Full Code Here

    private JbsLabel lblContact;
    private JbsContactSelectField selContact;

    public FmLetterReportOptions() {
        super("letter");
        this.setWidth(new JbsExtent(400,JbsExtent.PX));
    }
View Full Code Here

            });
        }


        Row topRow = new Row();
        topRow.setCellSpacing(new JbsExtent(DIALOG_INSETS));
        topRow.add(iconLabel);
        topRow.add(messageColumn);

        KeyStrokeListener ks = new KeyStrokeListener();

        ArrayList<JbsButton> buttons = new ArrayList<JbsButton>();

        if (optionType == DEFAULT_OPTION) {
            buttons.add(defaultButton = createButton(JbsL10N.getString("Generic.ok"), OK_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_RETURN, OK_OPTION);
        } else if (optionType == YES_NO_OPTION) {
            buttons.add(defaultButton = createButton(JbsL10N.getString("Generic.yes"), YES_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_RETURN, YES_OPTION);
            buttons.add(createButton(JbsL10N.getString("Generic.no"), NO_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_ESCAPE, NO_OPTION);
        } else if (optionType == YES_NO_CANCEL_OPTION) {
            buttons.add(defaultButton = createButton(JbsL10N.getString("Generic.yes"), YES_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_RETURN, YES_OPTION);
            buttons.add(createButton(JbsL10N.getString("Generic.no"), NO_OPTION));
            buttons.add(createButton(JbsL10N.getString("Generic.cancel"), CANCEL_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_ESCAPE, CANCEL_OPTION);
        } else if (optionType == OK_CANCEL_OPTION) {
            buttons.add(defaultButton = createButton(JbsL10N.getString("Generic.ok"), OK_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_RETURN, OK_OPTION);
            buttons.add(createButton(JbsL10N.getString("Generic.cancel"), CANCEL_OPTION));
            ks.addKeyCombination(KeyStrokeListener.VK_ESCAPE, CANCEL_OPTION);
        }
       
        if (btnDetails!=null)
            buttons.add(btnDetails);
       
        ks.addActionListener(this);
        topRow.add(ks);

        ButtonPanel buttonPanel = new ButtonPanel();
        ColumnLayoutData buttonPanelLayout = new ColumnLayoutData();
        buttonPanelLayout.setAlignment(new Alignment(Alignment.CENTER, Alignment.TOP));
        buttonPanel.setLayoutData(buttonPanelLayout);
        for (int i = 0; i < buttons.size(); i++) {
            buttonPanel.add((AbstractButton) buttons.get(i));
        }

        Column mainColumn = new Column();
        mainColumn.setCellSpacing(new JbsExtent(COMMAND_SEPARATION));
        mainColumn.add(topRow);
        mainColumn.add(buttonPanel);

        add(mainColumn);

        int dialogHeight = /*titleHeight*/ 60 + DIALOG_INSETS * 2 +
                Math.max(LABEL_HEIGHT * labelCount, iconHeight) +
                DIALOG_INSETS + COMMAND_SEPARATION + BUTTON_HEIGHT;
       
        setHeight(new JbsExtent(dialogHeight));
        setWidth(new JbsExtent(600))// Reasonable default
        setModal(true);
        setInsets(new Insets(DIALOG_INSETS));
    }
View Full Code Here

            }

            if (iconName != null) {
                final String imagePath = Styles.getIconPath(); //"../resource/images/";
                messageIcons[messageType] = new ResourceImageReference(
                        imagePath + iconName, new JbsExtent(ICON_HEIGHT), new JbsExtent(ICON_HEIGHT));
            }
        }

        return messageIcons[messageType];
    }
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;

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

    protected void initPanel() {
        this.createComponents();

        JbsGrid grdMain = new JbsGrid(2);
        grdMain.setInsets(new Insets(5, 5));
        grdMain.setColumnWidth(0, new JbsExtent(300));

        grdMain.add(new Label(JbsL10N.getString("Permissions.user")));
        grdMain.add(cbbUsers);
        grdMain.add(new Label(JbsL10N.getString("Permissions.read")));
        grdMain.add(cbReadUser);
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.