Package DisplayProject.controls

Examples of DisplayProject.controls.ListView


                  }
//                  rl.update();
                  return;
              }
              else if (comp instanceof ListView){ //PM:23/4/08 added support for ListView
                ListView lv = (ListView)comp;
              // TF:Mar 9, 2010:Corrected this for the default set
                int titleSetNum = lv.getTitleSetNum();
                if (titleSetNum <= 0 && defaultSet > 0) {
                  titleSetNum = defaultSet;
                }
                lv.loadColumnHeadings(titleSetNum, mcat);
              }
              else if (comp instanceof OutlineField) {
                OutlineField of = (OutlineField)comp;
                of.setDefaultSet(defaultSet, mcat);
              }
View Full Code Here


     * Sets the list view column title to <code>name</code> and sets the font style to <code>headerFontStyle</code>.
     *
     */

    public static ListView newListView(String name, int ListStyle, Font font, int HeaderStyle ){
        ListView jt = new ListView(name, ListStyle, font, HeaderStyle);
        return jt;
    }
View Full Code Here

    public static void set(ListView comp, DisplayNode value){
        ActionMgr.addAction(new DeselectNode(comp, value));
    }
    public static void set(DisplayNode value){
        ListView lv = (ListView)((DisplayNode)value.getRoot()).getUserObject();
        if (lv == null){
            UsageException errorVar = new UsageException("The DisplayNode is not asociated with a ListView [" + value.toString() + "]");
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }
View Full Code Here

                        DefaultTreeModel model = (DefaultTreeModel)(((JTree)root).getModel());
                        model.removeNodeFromParent(this);
                        handled = true;
                    }
                    else if (root instanceof ListView) {
                        ListView lv = (ListView)root;
                        lv.removeNode(this);
                        this.removeFromParent();
                        handled = true;
                    }
                    else if (root instanceof OutlineField) {
                        DefaultTreeModel model = (DefaultTreeModel)(((OutlineField)root).getModel());
View Full Code Here

                  }
//                  rl.update();
                  return;
              }
              else if (comp instanceof ListView){ //PM:23/4/08 added support for ListView
                ListView lv = (ListView)comp;
              // TF:Mar 9, 2010:Corrected this for the default set
                int titleSetNum = lv.getTitleSetNum();
                if (titleSetNum <= 0 && defaultSet > 0) {
                  titleSetNum = defaultSet;
                }
                lv.loadColumnHeadings(titleSetNum, mcat);
              }
              else if (comp instanceof OutlineField) {
                OutlineField of = (OutlineField)comp;
                of.setDefaultSet(defaultSet, mcat);
              }
View Full Code Here

                        DefaultTreeModel model = (DefaultTreeModel)(((JTree)root).getModel());
                        model.removeNodeFromParent(this);
                        handled = true;
                    }
                    else if (root instanceof ListView) {
                        ListView lv = (ListView)root;
                        lv.removeNode(this);
                        this.removeFromParent();
                        handled = true;
                    }
                    else if (root instanceof OutlineField) {
                        DefaultTreeModel model = (DefaultTreeModel)(((OutlineField)root).getModel());
View Full Code Here

        super(pComponent);
        this.value = pFont;
    }
    public void performAction() {
        if (this._component instanceof ListView){
            ListView lv = (ListView)this._component;
            JTableHeader header = lv.getTable().getTableHeader();
            if (header != null){
                header.setFont(this.value);
            }
        } else if (this._component instanceof OutlineField){
            OutlineField of = (OutlineField)this._component;
View Full Code Here

        return this.value;
    }
    public void performAction() {
      // CraigM:27/08/2008 - Implemented for ListView
      if (this._component instanceof ListView) {
        ListView lv = (ListView)this._component;
        lv.clearSelectedNodes();
       
        for (DisplayNode node : value) {
          lv.selectNode(node);
        }
      }
      // TF:08/08/2009:Implemented for outline fields
      else if (this._component instanceof OutlineField) {
        OutlineField of = (OutlineField)this._component;
View Full Code Here

            params.put( "node", new ParameterHolder(((JListView)pControl).getCurrentNode()) );
            params.put( "row", new ParameterHolder(0) );
            params.put( "column", new ParameterHolder(0) );
        }
        else if (pControl != null && pControl instanceof ListView) {
            ListView list = (ListView)pControl;
            params.put( "node", new ParameterHolder(((ListView)pControl).getCurrentNode()) );
            // TF:27/9/07:Made the row and column 1-based indexes instead of 0-based
            // TF:26/3/08:getSelectedRow has changed to be 1-based itself, so we need to change this back to remove the +1
            params.put( "row", new ParameterHolder(list.getSelectedRow()));
//            qq_Params.put( "column", new ParameterHolder(0) );
            params.put( "column", new ParameterHolder(list.getTable().getSelectedColumn()+1) );//CONV_REM:dq Need the column that was selected, not a 0.
        }
        else if (pControl != null && pControl instanceof JTable)
        {
            JTable table = (JTable)pControl;
            if (table.getModel() instanceof TableSorter) {
View Full Code Here

//             
//            }
        }else if (this._component instanceof JTable){

        }else if (this._component instanceof ListView){
            ListView lv = (ListView)this._component;

            lv.insertNode(this.index, kid);
            lv.repaint();

        }
    }
View Full Code Here

TOP

Related Classes of DisplayProject.controls.ListView

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.