Package net.helipilot50.stocktrade.displayproject

Examples of net.helipilot50.stocktrade.displayproject.GridCell


        Row action = ActionMgr.getAction(comp, Row.class);
        if (action != null) {
            return action.getRow();
        }
        // TF:20/8/07:Adapted to use new GridField static methods
        GridCell gbc = GridField.getConstraints(comp);
        return gbc.getRow() + 1;
    }
View Full Code Here


    public TopMargin(Component pComponent, int value) {
        super(pComponent);
        this.margin = value;
    }
    public void performAction() {
        GridCell gbc = null;
        if (this._component != null) {
            // TF:20/8/07:Adapted to use new GridField static methods
            gbc = GridField.getConstraints((JComponent)this._component);
            gbc.setTopMargin(UIutils.milsToPixels(margin));
        }
    }
View Full Code Here

        TopMargin action = ActionMgr.getAction(comp, TopMargin.class);
        if (action != null) {
            return action.margin;
        }
        // TF:20/8/07:Adapted to use new GridField static methods
        GridCell gbc = GridField.getConstraints(comp);
        return UIutils.pixelsToMils(gbc.getTopMargin());
    }
View Full Code Here

    public Column(Component pComponent, int value) {
        super(pComponent);
        this.col = value;
    }
    public void performAction() {
        GridCell gbc = null;
        if (this._component != null) {
            gbc = GridField.getConstraints((JComponent)this._component);
            gbc.setColumn(col - 1);
        }
    }
View Full Code Here

    public static int get(JComponent comp){
        Column action = ActionMgr.getAction(comp, Column.class);
        if (action != null ) {
            return ((Column)action).getColumn();
        }
        GridCell gbc = GridField.getConstraints((JComponent)comp);
        return gbc.getColumn() + 1;
    }
View Full Code Here

    public static int getWithCharacterField(CharacterField comp){
        Column action = ActionMgr.getAction((JComponent)comp, Column.class);
        if (action != null ) {
            return ((Column)action).getColumn();
        }
        GridCell gbc = GridField.getConstraints((JComponent)comp);
        return gbc.getColumn() + 1;
    }
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

        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
                "actionMap", // class javax.swing.ActionMap
View Full Code Here

     * indicies are 1-based. If the collapsed attribute is true,
     * this method does nothing. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void insertColumn(final int position) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".insertColumn(" + position + ")";
            }
            @Override
View Full Code Here

     * Add a row into the model. If the collapsed attribute is true,
     * this method does nothing. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void insertRow(final int position) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".insertRow(" + position + ")";
            }
            @Override
View Full Code Here

TOP

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

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.