Package net.datacrow.console.windows.itemforms

Examples of net.datacrow.console.windows.itemforms.ItemForm


    public void open() {
        DcObject dco = getSelectedItem();
       
        if (dco != null) {
            ItemForm form = new ItemForm(false, getType() == View._TYPE_SEARCH,
                                         dco, getType() != View._TYPE_SEARCH);
            form.setVisible(true);
            form = null;
        } else {
            DcSwingUtilities.displayWarningMessage(DcResources.getText("msgSelectRowToOpen"));
        }
    }
View Full Code Here


   
    private void addTab() {
        DcObject tab = DcModules.get(DcModules._TAB).getItem();
        tab.setValue(Tab._D_MODULE, Long.valueOf(dlg.getModule()));
        tab.addRequest(new UpdateItemFormSettingsWindow(dlg, false));
        ItemForm frm = new ItemForm(null, false, false, tab, true);
        frm.setVisible(true);
    }
View Full Code Here

                if (o != null) {
                    SwingUtilities.invokeLater(
                            new Thread(new Runnable() {
                                @Override
                                public void run() {
                                    ItemForm itemForm = new ItemForm(false, false, o, true);
                                    itemForm.setVisible(true);
                                }
                            }));
                }
            }
        }).start();
View Full Code Here

                int module = Integer.valueOf(query.substring(query.indexOf("=") + 1));
                DcObject dco = DataManager.getItem(module, ID);
               
                if (dco != null) {
                    dco.markAsUnchanged();
                    new ItemForm(false, true, dco, false).setVisible(true);
                }
            }
        }
    }    
View Full Code Here

        removeAll();
    }
   
    private void create() {
        DcObject dco = DcModules.get(referenceIdx).getItem();
        ItemForm itemForm = new ItemForm(false, false, dco, true);
        itemForm.setListener(this);
        itemForm.setVisible(true);
    }
View Full Code Here

        if (itemForm != null)
            itemForm.close(true);
    }
   
    private void build(DcObject dco) {
        itemForm = new ItemForm(null, false,  false, dco, true);

        setLayout(Layout.getGBL());
        add(itemForm.getTabbedPane(), Layout.getGBC(0, 0, 1, 1, 1.0, 1.0
                       ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
                        new Insets(5, 5, 5, 5), 0, 0));
View Full Code Here

        //Input panel
        //**********************************************************
        JPanel panelInput = new JPanel();
        panelInput.setLayout(Layout.getGBL());
       
        itemForm = new ItemForm(null, false, false, module.getItem(), false);
        for (DcField field : module.getFields()) {
            if (field.getValueType() == DcRepository.ValueTypes._PICTURE)
                itemForm.hide(field);
            else if (field.getIndex() == DcObject._ID)
                itemForm.hide(field);
View Full Code Here

        setValue(dco);
    }

    private void create() {
        DcObject dco = DcModules.get(referenceModIdx).getItem();
        ItemForm itemForm = new ItemForm(false, false, dco, true);
        itemForm.setListener(this);
        itemForm.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of net.datacrow.console.windows.itemforms.ItemForm

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.