Package net.helipilot50.stocktrade.displayproject

Examples of net.helipilot50.stocktrade.displayproject.DataFieldVerifier


    public static DataField newDataField(String name, int columns, Format format) {
        DataField df = new DataField(format);
        df.setName(name);
        df.setColumns(columns);
        df.setOpaque(true);
        df.setInputVerifier(new DataFieldVerifier());
        setFont(df);
        // TF:17 Sep 2009:Moved this into the actual control
        // df.addMouseListener(StatusTextListener.sharedInstance()); //PM:1/5/08
        return df;
    }
View Full Code Here


     */
    public static DataField newDataField() {
        DataField df = new DataField();
        df.setOpaque(true);
        df.setDocument(new FixedLengthDocument(0));
        df.setInputVerifier(new DataFieldVerifier());
        // Install a factory that knows about data value instances
        df.setFormatterFactory(new DataFieldFormatterFactory());
        df.setDisabledTextColor(SystemColor.windowText);
        setFont(df);
        // TF:17 Sep 2009:Moved this into the actual control
View Full Code Here

        DataField df = new DataField(formatter);
        df.setName(name);
        df.setColumns(columns);
        df.setOpaque(true);
        df.setDocument(new FixedLengthDocument(0));
        df.setInputVerifier(new DataFieldVerifier());
        df.setDisabledTextColor(SystemColor.windowText);
        setFont(df);
        return df;
    }
View Full Code Here

    public static DataField newDataField(String name, int columns, AbstractFormatterFactory factory) {
        DataField df = new DataField(factory);
        df.setName(name);
        df.setColumns(columns);
        df.setOpaque(true);
        df.setInputVerifier(new DataFieldVerifier());
        df.setDisabledTextColor(SystemColor.windowText);
        setFont(df);
        // TF:17 Sep 2009:Moved this into the actual control
        // df.addMouseListener(StatusTextListener.sharedInstance()); //PM:1/5/08
        return df;
View Full Code Here

    public static DataField newDataField(String name, int columns, AbstractFormatterFactory factory, JComboBox cb) {
        DataField df = new DataField(factory, cb);
        df.setName(name);
        df.setColumns(columns);
        df.setOpaque(true);
        df.setInputVerifier(new DataFieldVerifier());
        df.setDisabledTextColor(SystemColor.windowText);
        setFont(df);
        // TF:17 Sep 2009:Moved this into the actual control
        // df.addMouseListener(StatusTextListener.sharedInstance()); //PM:1/5/08
        return df;
View Full Code Here

    public static DataField newDataField(String name, int columns, AbstractFormatterFactory factory, Object currentValue) {
        DataField df = new DataField(factory, currentValue);
        df.setName(name);
        df.setColumns(columns);
        df.setOpaque(true);
        df.setInputVerifier(new DataFieldVerifier());
        df.setDisabledTextColor(SystemColor.windowText);
        setFont(df);
        return df;
    }
View Full Code Here

     *
     */
    public static DataField newDataField(String name, int columns, int maskType){
        DataField df = newDataField(name, columns);
        df.setMaskType(maskType);
        df.setInputVerifier(new DataFieldVerifier());
        return df;
    }
View Full Code Here

        CloneHelper.cloneClientProperties(source, target);
        return target;
    }

    public static JTree cloneJTree(JTree source) {
        DisplayNode root = clone((DisplayNode) source.getModel().getRoot(), true);
        TreeViewModel dtm = new TreeViewModel(root);
        JTree target = new JTree(dtm);
        CloneHelper.cloneComponent(source, target, new String[] {"UI", // class javax.swing.plaf.TreeUI
                "UIClassID", // class java.lang.String
                "accessibleContext", // class javax.accessibility.AccessibleContext
View Full Code Here

        this.editor = new BorderedComboBoxEditor();
        this.setEditor(this.editor);
        this.setRenderer(new BorderedComboBoxRenderer());
        JTextComponent comp = (JTextComponent)this.editor.getEditorComponent();
        comp.setBackground(this.getBackground());
        comp.setDocument(new FixedLengthDocument(0));

        comp.addKeyListener(new ComboBoxKeyHandler());
    }
View Full Code Here

            }
            if (autoComplete) {
                editComponent.setDocument(new FillinManagementDocument(this, showDropdowns, listEntriesOnly, maxCharacters));
            }
            else {
                editComponent.setDocument(new FixedLengthDocument(maxCharacters));
            }
        }
    }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.displayproject.DataFieldVerifier

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.