Examples of ArrayColumnModel


Examples of DisplayProject.ArrayColumnModel

     * @param name
     */
    public TableHelper(int rowHeight, String name)
    {
        table = TableFactory.newArrayField(name, rowHeight);
        ArrayColumnModel cm = new ArrayColumnModel();
        table.setColumnModel(cm);
    }
View Full Code Here

Examples of DisplayProject.ArrayColumnModel

        // TF:22/11/07:If this component is a template for an array column, get the array column first
        ArrayColumn column = this.column;
        JTable t = ArrayFieldCellHelper.getArrayField(this._component);
        if (t != null) {
            int col = ArrayFieldCellHelper.getArrayFieldColumn((JComponent)this._component);
            ArrayColumnModel model = (ArrayColumnModel) t.getColumnModel();
            column = (ArrayColumn)model.getRealColumn(col);
        }

        switch (this.colourType) {
        case cBACKGROUND:
            if (column != null) {
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.ArrayColumnModel

     * @param name
     */
    public TableHelper(int rowHeight, String name)
    {
        table = TableFactory.newArrayField(name, rowHeight);
        ArrayColumnModel cm = new ArrayColumnModel();
        table.setColumnModel(cm);
    }
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.ArrayColumnModel

    setColumnSelectionAllowed(false);
    setName(name);
    if (rowHeight > 0){//PM:22/05/2008:fixed for express
      setRowHeight( rowHeight );
    }
    setColumnModel(new ArrayColumnModel()); //Added to reduce code generated
    setRowSelectionAllowed(true);
    setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
    setSelectionBackground(UIutils.PaleYellow); // This is the pale yellow row highlight - If you want it yellow use: UIutils.PaleYellow
    setSelectionForeground(Color.BLACK);
    setIntercellSpacing(new Dimension()); // CraigM: 19/07/2007 - Remove the gaps between the rows
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.ArrayColumnModel

      // notify the Model that a new row has bee added
      ((ArrayFieldModel)this.getModel()).shouldIgnoreRowChange(e); //Required to prevent multiple AfterRowEntry events

      // CraigM:12/06/2008 - If they created a new row on a button column, create an event as if they had pressed the button
      ArrayColumnModel cm = (ArrayColumnModel)getColumnModel();

      // CraigM:26/06/2008 - Don't use the getRealColumn method as we have obtained this column from x,y coords
      Component comp = this.getColumnTemplate((ArrayColumn)cm.getColumn(col));

      // CraigM:25/07/2008 - Do this for DataFields as well
      if (comp instanceof TableJButton || comp instanceof DataField) {
        // CraigM:12/06/2008 - Create a new mouse event with x,y coords in the middle of the button
        e = new MouseEvent(comp,
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.ArrayColumnModel

   * The pCol parameter is a 1-based index which represents the real column in the array field
   * @param pCol
   * @return
   */
  public JComponent getColumnTemplate(int pCol) {
    ArrayColumnModel cm = (ArrayColumnModel)getColumnModel();
    //PM:28/4/08 corrected for real column
    return this.getColumnTemplate(cm.getRealColumn(pCol-1));
  }
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.ArrayColumnModel

   * @param column the 0-based index into the array column model (using the real model)
   * @return the TextGraphic used to render the column title.
   */
  public TextGraphic getColumnTitle(int column){
    //PM:28/4/08 corrected for real column
    ArrayColumnModel cm = (ArrayColumnModel)getColumnModel();
    // TF:3/7/08:Made this 0-based for consistency with Java, not 1-based as per Forte
    String title = cm.getRealColumn(column).getHeaderValue().toString();
    return (TextGraphic)getTableHeader().getDefaultRenderer().getTableCellRendererComponent(this, title, false, false, 0, column);

  }
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.ArrayColumnModel

   */
  public ArrayField cloneComponent() {
    ArrayField clone = TableFactory.newArrayField(this.getName(), this.getRowHeight());

    clone.setModel(this.getModel());
    clone.setColumnModel(new ArrayColumnModel());

    // This copyProperties was just copied from ListView, so it's probably not correct.
    CloneHelper.cloneComponent(this, clone, new String[]{"UI", // class javax.swing.plaf.PanelUI
        "UIClassID", // class java.lang.String
        "accessibleContext", // class javax.accessibility.AccessibleContext
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.ArrayColumnModel

   * Returns the total number of columns in the array including hidden columns
   * @return
   */
  //PM:1/5/08
  public int getRealColumnCount() {
    ArrayColumnModel cm = (ArrayColumnModel)getColumnModel();
    return cm.getRealColumnCount();
  }
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.ArrayColumnModel

         * to the sorting column.
         */
        //  Some test code to see if code below could be simplified
        if (this.getSorter().isSorting())  {
            int column = this.getSorter().getSortColumn();
            ArrayColumnModel columnModel = this.getColumnModel();
            ArrayColumn arrayColumn = columnModel.getRealColumn(column);
            TextData name = new TextData();
            name.setValue(arrayColumn.getName());
            if (name.moveToString("Item")) {
                name = name.copyRange(name.getOffset());
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.