Class FieldFormatModel


  • public class FieldFormatModel
    extends java.lang.Object
    Maintains the size and ordering for a layout of fields.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      ChangeModifier and Type Method Description
      void addAllFactories()
      Adds all unused fields to this model.
      void addFactory​(FieldFactory factory, int rowIndex, int colIndex)
      Adds a new field to this format.
      void addLayouts​(java.util.List<RowLayout> list, int index, ProxyObj<?> proxy)
      Generates the layout objects for the given index and proxy object
      void addRow​(int index)
      Adds new empty row at the given position.
      FieldFactory[] getAllFactories()  
      FieldFactory[] getFactorys()
      Returns the list factories valid for this format.
      FieldFactory[] getFactorys​(int row)
      Returns the FieldFactorys on a given row.
      FormatManager getFormatManager()
      Returns the formatMgr that is managing this model.
      java.lang.String getName()
      Returns the name of this format model.
      int getNumFactorys​(int row)
      Returns the number of FieldFactorys on any given row.
      int getNumRows()
      Returns the number of rows in the model.
      FieldFactory[] getUnusedFactories()
      Returns a list of unused valid fields for this model
      int getWidth()
      Returns the width of this model
      void modelChanged()
      Notifies the formatMgr that this format model has changed.
      void moveFactory​(int oldRowIndex, int oldColIndex, int newRowIndex, int newColIndex)
      Moves the Field at (oldrow,oldCol) to (row,col)
      void optionsChanged​(Options options, java.lang.String optionName, java.lang.Object oldValue, java.lang.Object newValue)
      Notifies that the options have changed.
      void removeAllFactories()
      Removes all fields from this model.
      void removeFactory​(int rowIndex, int colIndex)
      Removes a field from the format.
      void removeRow​(int index)
      Removes the row currently at the given position.
      void restoreFromXml​(org.jdom.Element root)
      Restores the format for this model from XML.
      org.jdom.Element saveToXml()
      Saves this format to XML.
      void servicesChanged()
      Notifies each row that the services have changed.
      void setBaseRowID​(int id)
      Sets the base id for this model.
      void update()
      Updates users of the formatMgr to indicate the format has changed.
      void updateRow​(int index)
      Updates the fields on the given row.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail