Class DField

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, org.kopi.galite.visual.base.UComponent, org.kopi.galite.visual.form.UField
Direct Known Subclasses:
DActorField, DObjectField, DTextField

public abstract class DField extends JPanel implements org.kopi.galite.visual.form.UField
DField is a panel composed in a text field and an information panel The text field appear as a JLabel until it is edited
See Also:
  • Field Details

    • model

      protected org.kopi.galite.visual.form.VFieldUI model
    • label

      public DLabel label
    • info

      protected JFieldButton info
    • incr

      protected JFieldButton incr
    • decr

      protected JFieldButton decr
    • state

      protected int state
    • pos

      protected int pos
    • options

      protected int options
    • align

      protected int align
    • access

      protected int access
    • isEditable

      protected boolean isEditable
    • mouseInside

      protected boolean mouseInside
  • Constructor Details

    • DField

      public DField(org.kopi.galite.visual.form.VFieldUI model, DLabel label, int align, int options, boolean detail)
  • Method Details

    • getObject

      public abstract Object getObject()
      Returns the object associed to record r
      Specified by:
      getObject in interface org.kopi.galite.visual.form.UField
      Returns:
      the displayed value at this position
    • setPosition

      public void setPosition(int pos)
      Field cell renderer
      Specified by:
      setPosition in interface org.kopi.galite.visual.form.UField
    • getPosition

      public int getPosition()
      Field cell renderer
      Specified by:
      getPosition in interface org.kopi.galite.visual.form.UField
      Returns:
      the position in chart (0..nbDisplay)
    • getAlign

      public int getAlign()
      Returns the alignment
    • updateText

      public void updateText()
      Specified by:
      updateText in interface org.kopi.galite.visual.form.UField
    • updateFocus

      public void updateFocus()
      Specified by:
      updateFocus in interface org.kopi.galite.visual.form.UField
    • forceFocus

      public void forceFocus()
      Specified by:
      forceFocus in interface org.kopi.galite.visual.form.UField
    • updateAccess

      public void updateAccess()
      Specified by:
      updateAccess in interface org.kopi.galite.visual.form.UField
    • update

      public void update()
      This method is called after an action of the user, object should be redisplayed accordingly to changes.
    • getBlockView

      public org.kopi.galite.visual.form.UBlock getBlockView()
      Specified by:
      getBlockView in interface org.kopi.galite.visual.form.UField
    • modelHasFocus

      protected final boolean modelHasFocus()
    • isSkipped

      protected final boolean isSkipped()
    • getAccess

      public final int getAccess()
      Specified by:
      getAccess in interface org.kopi.galite.visual.form.UField
    • getForeground

      public final Color getForeground()
      Overrides:
      getForeground in class Component
    • getBackground

      public final Color getBackground()
      Overrides:
      getBackground in class Component
    • getAccessAt

      protected final int getAccessAt(int at)
    • getForegroundAt

      protected final Color getForegroundAt(int at)
    • getBackgroundAt

      protected final Color getBackgroundAt(int at)
    • getModel

      public final org.kopi.galite.visual.form.VField getModel()
      Specified by:
      getModel in interface org.kopi.galite.visual.form.UField
    • fireMouseHasChanged

      public final void fireMouseHasChanged()
    • getAutofillButton

      public org.kopi.galite.visual.base.UComponent getAutofillButton()
      Specified by:
      getAutofillButton in interface org.kopi.galite.visual.form.UField
    • getRowController

      public org.kopi.galite.visual.form.VFieldUI getRowController()
    • setDisplayProperties

      protected abstract void setDisplayProperties()
    • prepareSnapshot

      public void prepareSnapshot(int fieldPos, boolean activ)
      prepare a snapshot
      Specified by:
      prepareSnapshot in interface org.kopi.galite.visual.form.UField
      Parameters:
      fieldPos - position of this field within block visible fields
    • setInDetail

      public void setInDetail(boolean detail)
      Specified by:
      setInDetail in interface org.kopi.galite.visual.form.UField
    • isInDetail

      public boolean isInDetail()