Package net.helipilot50.stocktrade.displayproject

Examples of net.helipilot50.stocktrade.displayproject.DataFieldFormatterFactory$DataFormatterException


        this.dataFieldCloned.setDocument(new FixedLengthDocument(doc.getMaxLength()));
      }
      else {
        this.dataFieldCloned.setDocument(new PlainDocument()); // we can't reuse the document
      }
      this.dataFieldCloned.setFormatterFactory(new DataFieldFormatterFactory()); // we can't reuse the formatter
      // TF:29 Oct 2008:removed the caret
    this.dataFieldCloned.getCaret().setVisible(false);
   
//TF:DEBUG      System.out.println("Renderer: orig  " + this.dataFieldOriginal .getName()+" [" + this.dataFieldOriginal.hashCode() + "]");
//TF:DEBUG      System.out.println("Renderer: clone " + this.dataFieldCloned.getName()+" [" + this.dataFieldCloned.hashCode() + "]");
View Full Code Here


        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
        // df.addMouseListener(StatusTextListener.sharedInstance()); //PM:1/5/08
        return df;
View Full Code Here

        return configureFormatter(newDataField(name, columns, pMaskType), inputMask, maskPlaceHolder, mappedType);
    }

    public static DataField configureFormatter(DataField dataField, String inputMask, char maskPlaceHolder, String format, Class<?> mappedType)
    {
        dataField.setFormatterFactory(new DataFieldFormatterFactory(inputMask, maskPlaceHolder, format, mappedType));
        return dataField;
    }
View Full Code Here

        return dataField;
    }

    private static DataField configureFormatter(DataField dataField, String inputMask, char maskPlaceHolder, Class<?> mappedType)
    {
        dataField.setFormatterFactory(new DataFieldFormatterFactory(inputMask, maskPlaceHolder, mappedType));
        return dataField;
    }
View Full Code Here

        //dataField.setFormatterFactory(new DataFieldFormatterFactory(mappedType, formatter));
            dataField.setOriginalFormatText(format);
      }
      //PM:18/3/08 date for
      else {
        dataField.setFormatterFactory(new DataFieldFormatterFactory(format, mappedType));
      }
        return dataField;
    }
View Full Code Here

        return dataField;
    }

    private static DataField configureFormatter(DataField dataField, Class<?> mappedType)
    {
        dataField.setFormatterFactory(new DataFieldFormatterFactory(mappedType));
        return dataField;
    }
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

        target.setPreferredSize(source.isPreferredSizeSet() ? source.getPreferredSize() : null);
        target.setMinimumSize(source.isMinimumSizeSet() ? source.getMinimumSize() : null);
        target.setMaximumSize(source.isMaximumSizeSet() ? source.getMaximumSize() : null);
       
        if (source instanceof JComponent) {
          GridCell orig = GridCell.getExisting((JComponent)source);
          if (orig != null) {
            GridCell cell = GridCell.get((JComponent)target);
            cell.setWidthPolicy(orig.getWidthPolicy());
            cell.setHeightPolicy(orig.getHeightPolicy());
          }
          // TF:03/11/2008:We need to clone specific client properties too, otherwise some things won't work.
          ArrayFieldCellHelper.cloneComponentArrayParts((JComponent)source, (JComponent)target);
        }
    }
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.displayproject.DataFieldFormatterFactory$DataFormatterException

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.