Package net.helipilot50.stocktrade.displayproject

Examples of net.helipilot50.stocktrade.displayproject.RadioList


        l.setRadioList(rl);
        return rl;
    }

    public static RadioList newRadioList(int xy, String caption){
        RadioList rl = new RadioList(xy, caption);
        return rl;
    }
View Full Code Here


        RadioList rl = new RadioList(xy, caption);
        return rl;
    }

    public static RadioList newRadioList(int xy, String caption, String[] pNamesForVisualEditor, int pWrapSize, int pLayoutPolicy){
        RadioList rl = new RadioList(xy, caption, pNamesForVisualEditor, pWrapSize, pLayoutPolicy);
        return rl;
    }   
View Full Code Here

            return;
        }

        // DET-148:Added in the capability to have a "read only" radio list
        else if (comp instanceof RadioList) {
          RadioList rl = (RadioList)comp;
            switch (state) {
            case Constants.FS_UPDATE:
              Editable.set(rl, true);
                Enabled.set(comp, true);
                Visible.set(comp, true);
View Full Code Here

    this.caption = new TextData(value);
  }
  public void performAction() {
    // TF:26/06/2008:Made this class handle RadioLists
    if (this._component instanceof RadioList) {
      RadioList rl = (RadioList)this._component;
      rl.setCaption(this.caption);

      // CraigM:26/08/2008 - If we add or remove a caption, this affects the size of the radio list
      rl.updateSize();
    }
    else if (this._component != null) {
      // CraigM:23/07/2008 - Changed to JComponent as a JScrollPane can have captions too
      JComponent panel = (JComponent)this._component;
      panel.putClientProperty("qq_caption", this.caption.toString());
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

     * return the weight of the column in the grid field. This method is thread-safe.
     * @param row
     * @return
     */
    public int getColumnJustifyWeight(int column) {
        PendingAction action = ActionMgr.getAction(new ColumnJustifyWeightFilter(column));
        if (action != null) {
            return ((ColumnJustifyWeight)action).weight;
        }
        Integer val = layout.columnWeights.get(column);
        return val == null ? 0 : val.intValue();
View Full Code Here

     * return the weight of the row in the grid field. This method is thread-safe.
     * @param row
     * @return
     */
    public int getRowJustifyWeight(int row) {
        PendingAction action = ActionMgr.getAction(new RowJustifyWeightFilter(row));
        if (action != null) {
            return ((RowJustifyWeight)action).weight;
        }
        Integer val = layout.rowWeights.get(row);
        return (val == null) ? 0 : val.intValue();
View Full Code Here

     * rows is more than the passed value, the number of rows will be
     * set to the number of rows used. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void setRows(final int pRows) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".setRows(" + pRows + ")";
            }
            @Override
View Full Code Here

TOP

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

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.