Class PArrayTable

All Implemented Interfaces:
PAppComponent, PAppFieldComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PFieldBean, PViewDataChangeListener, ActionListener, MouseListener, ImageObserver, MenuContainer, Serializable, Remote, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class PArrayTable extends PIASpecSpreadSheet
A PIASpecSpreadSheet that handles arrays in a slightly different manner. The base PIASpecSpreadSheet is not capable of handling row deletion. This class handles row deletion by rewriting all the array elements each time collectData is called. The mechanism is dependent on the assumption that the array indices are all sequential single increments starting from zero (ie 0, 1, 2 , ...). The new array will be stored in a like manner.
See Also:
  • Constructor Details

    • PArrayTable

      public PArrayTable()
  • Method Details

    • collectData

      public void collectData(PCollectDataEvent event)
      CollectDataListener override. Causes control to save changes back to data model. Done prior to commiting changes to Portal.
      All the array elements from the original array will be overwritten. All the array elements from the current array will be written, regardless of whether they are dirty.
      Specified by:
      collectData in interface PCollectDataListener
      Overrides:
      collectData in class PIASpecSpreadSheet
      Parameters:
      event - The collect data event
    • setModelHandle

      public void setModelHandle(PModelHandle data) throws RemoteException
      Establishes the PModelHandle for this component
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIASpreadSheet
      Parameters:
      data - The new PModelHandle from which information will be extracted.
      Throws:
      RemoteException
    • setRowDeletionSupported

      public void setRowDeletionSupported(boolean b)
      Policy that determines how collectData() works for this component. Either deleted rows are returned as null, or they are ignored By default, only deleted rows are returned as null.
      Parameters:
      b - the policy determining how collectData() works.
    • getRowDeletionSupported

      public boolean getRowDeletionSupported()
      Returns the collectData(0) policy