Package net.helipilot50.stocktrade.displayproject

Examples of net.helipilot50.stocktrade.displayproject.PasswordDataField


        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

                    ((TitledBorder) border).setTitle("");
                }
            } else {
                if (pCaption != null) {
                    // TitledBorder tb = BorderFactory.createTitledBorder(border, caption.toString(), TitledBorder.LEFT, TitledBorder.TOP);
                    TitledBorder tb = new GridTitledBorder(border, caption.toString(), TitledBorder.LEFT, TitledBorder.TOP);
                    if (this.captionFont != null) {
                        tb.setTitleFont(this.captionFont);
                    }
                    setBorder(tb);
                }
            }
        } else {
          GridTitledBorder gridBorder;
            if (pCaption != null) {
              gridBorder = new GridTitledBorder(pCaption.toString());
            } else {
              gridBorder = new GridTitledBorder("");
            }
            if (this.captionFont != null) {
              gridBorder.setTitleFont(this.captionFont);
            }
            setBorder(gridBorder);
        }
    }
View Full Code Here

       * We now use a clone of the PasswordDataField
       * This may cause missing events
       */
      // This null check is for the visual editors
      if (this.passwordDataFieldCloned == null) {
        this.passwordDataFieldCloned = new PasswordDataField();
        this.passwordDataFieldOriginal = new PasswordDataField();
      }
        this.passwordDataFieldCloned.setLastValue(null);
        this.passwordDataFieldCloned.setValue(value);
        this.passwordDataFieldOriginal.setTable(table);
        this.passwordDataFieldOriginal.setTableColumn(column);
View Full Code Here

    }

    public boolean stopCellEditing()
    {
        logger.debug("stopCellEditing()");
        PasswordDataField df = this.passwordDataFieldCloned;

        if (df.isNullValueAllowed() & df.isValueNull()) {
            fireEditingStopped();
            resetTableData(this.passwordDataFieldOriginal, this.passwordDataFieldCloned);
            return true;
        }
View Full Code Here

    }

    public void cancelCellEditing()
    {
        logger.debug("cancelCellEditing()");
        PasswordDataField df = (PasswordDataField)getComponent();
        resetTableData(this.passwordDataFieldOriginal, this.passwordDataFieldCloned);
        df.disableEvents();
        super.cancelCellEditing();

    }
View Full Code Here

    public Component getTableCellRendererComponent(JTable table, Object value,
            boolean isSelected, boolean hasFocus, int row, int column) {
     
      // This null check is for the visual editors
      if (this.passwordDataFieldCloned == null) {
        this.passwordDataFieldCloned = new PasswordDataField();
        this.passwordDataFieldOriginal = new PasswordDataField();
      }
     
      //PM:29/4/08 Set correct border
      this.passwordDataFieldCloned.setBorder(this.passwordDataFieldOriginal.getBorder());
View Full Code Here

    int height = this.passwordDataFieldOriginal.getMinimumSize().height;
    // TF:27/11/2009:Changed this to use the passed width
//    int width = this.passwordDataFieldOriginal.getMinimumSize().width;

    if (this.passwordDataFieldPainter == null) {
        this.passwordDataFieldPainter = new PasswordDataField();
      }
    this.passwordDataFieldPainter.setForeground(this.passwordDataFieldOriginal.getForeground());
    this.passwordDataFieldPainter.setBackground(this.passwordDataFieldOriginal.getBackground());
    this.passwordDataFieldPainter.setBorder(this.passwordDataFieldOriginal.getBorder());
   
View Full Code Here

TOP

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

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.