Class DForm

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, org.kopi.galite.visual.base.UComponent, org.kopi.galite.visual.DPositionPanelListener, org.kopi.galite.visual.FileProductionListener, org.kopi.galite.visual.form.FormListener, org.kopi.galite.visual.form.UForm, org.kopi.galite.visual.ModelCloseListener, org.kopi.galite.visual.ProgressDialogListener, org.kopi.galite.visual.UWindow, org.kopi.galite.visual.VActionListener, org.kopi.galite.visual.WaitDialogListener, org.kopi.galite.visual.WaitInfoListener

public class DForm extends DWindow implements org.kopi.galite.visual.form.UForm, org.kopi.galite.visual.DPositionPanelListener
This is the display class of a form.
See Also:
  • Field Details

  • Constructor Details

    • DForm

      public DForm(org.kopi.galite.visual.form.VForm model)
      Constructor
  • Method Details

    • createViewForBlock

      protected DBlock createViewForBlock(org.kopi.galite.visual.form.VBlock blockModel)
    • getRuntimeDebugInfo

      public Throwable getRuntimeDebugInfo()
      Specified by:
      getRuntimeDebugInfo in interface org.kopi.galite.visual.form.UForm
    • addBlock

      public void addBlock(DBlock block, int page)
    • createEditMenu

      protected void createEditMenu()
      Description copied from class: DWindow
      Allow building of a customized edit menu.
      Overrides:
      createEditMenu in class DWindow
    • run

      public void run() throws org.kopi.galite.visual.VException
      start a block and enter in the good field (rec)
      Specified by:
      run in interface org.kopi.galite.visual.UWindow
      Specified by:
      run in class DWindow
      Throws:
      org.kopi.galite.visual.VException - an exception may be raised by triggers
    • reportError

      public void reportError(org.kopi.galite.visual.VRuntimeException e)
      Displays an error message.
      Overrides:
      reportError in class DWindow
    • displayFieldError

      public void displayFieldError(org.kopi.galite.visual.form.VFieldException fe)
    • gotoPage

      public void gotoPage(int i)
    • gotoNextPosition

      public void gotoNextPosition()
      Requests to go to the next position.
      Specified by:
      gotoNextPosition in interface org.kopi.galite.visual.DPositionPanelListener
    • gotoPrevPosition

      public void gotoPrevPosition()
      Requests to go to the previous position.
      Specified by:
      gotoPrevPosition in interface org.kopi.galite.visual.DPositionPanelListener
    • gotoLastPosition

      public void gotoLastPosition()
      Requests to go to the last position.
      Specified by:
      gotoLastPosition in interface org.kopi.galite.visual.DPositionPanelListener
    • gotoFirstPosition

      public void gotoFirstPosition()
      Requests to go to the first position.
      Specified by:
      gotoFirstPosition in interface org.kopi.galite.visual.DPositionPanelListener
    • gotoPosition

      public void gotoPosition(int posno)
      Requests to go to the specified position.
      Specified by:
      gotoPosition in interface org.kopi.galite.visual.DPositionPanelListener
    • getPageCount

      public int getPageCount()
      Returns the number of pages.
    • getPageTitle

      public String getPageTitle(int index)
      Returns the title of the specified page.
      Parameters:
      index - the index of the specified page
    • getCurrentPage

      public int getCurrentPage()
      GET PAGE
    • setCurrentPage

      public void setCurrentPage(int i)
      SET CURRENT PAGE
    • getModel

      public org.kopi.galite.visual.form.VForm getModel()
      Description copied from class: DWindow
      Get Model
      Specified by:
      getModel in interface org.kopi.galite.visual.UWindow
      Overrides:
      getModel in class DWindow
    • currentBlockChanged

      public void currentBlockChanged(org.kopi.galite.visual.form.VBlock oldBlock, org.kopi.galite.visual.form.VBlock newBlock)
      Specified by:
      currentBlockChanged in interface org.kopi.galite.visual.form.FormListener
    • setFieldSearchOperator

      public void setFieldSearchOperator(int op)
      setBlockRecords inform user about nb records fetched and current one
      Specified by:
      setFieldSearchOperator in interface org.kopi.galite.visual.form.FormListener
    • getBlockView

      public org.kopi.galite.visual.form.UBlock getBlockView(org.kopi.galite.visual.form.VBlock block)
      Specified by:
      getBlockView in interface org.kopi.galite.visual.form.UForm
    • release

      public void release()
      Description copied from class: DWindow
      Release: we definitively don't want anymore this window (JFrame)
      Overrides:
      release in class DWindow
    • getEnvironment

      public Environment getEnvironment()
    • launchDocumentPreview

      public void launchDocumentPreview(String file) throws org.kopi.galite.visual.VException
      Show document preview
      Specified by:
      launchDocumentPreview in interface org.kopi.galite.visual.form.UForm
      Throws:
      org.kopi.galite.visual.VException
    • printSnapshot

      public void printSnapshot()
      Print a snapshot of all blocks
      Specified by:
      printSnapshot in interface org.kopi.galite.visual.form.UForm
    • printForm

      public org.kopi.galite.visual.util.PrintJob printForm() throws org.kopi.galite.visual.VException
      Specified by:
      printForm in interface org.kopi.galite.visual.form.UForm
      Throws:
      org.kopi.galite.visual.VException