Class ColumnDepiction

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component @Configurable @Ignore("TRUNCATE") public class ColumnDepiction extends Column
This class implements the user interface object that allows to represent a table's column containing images loaded by the Gate, a component that provide the access to the resources located either in filesystem or database, trough the WebResource.
See Also:
GCApi:
component
  • Field Details

    • base

      protected WebResource base
    • roicon

      protected String roicon
    • lastLoadedRow

      protected int lastLoadedRow
    • imgWidth

      protected int imgWidth
    • imgHeight

      protected int imgHeight
    • css

      protected String css
    • resource

      protected MapFormat resource
    • initials

      protected ListAttribute initials
    • initialPositions

      protected int[] initialPositions
  • Constructor Details

    • ColumnDepiction

      public ColumnDepiction()
      Creates a ColumnGate
  • Method Details

    • setRESOURCE

      public void setRESOURCE(String s)
      Sets the name of the resource that will be loaded. The string is interpreted as a MapFormat, and so it is possible to insert variables.
      This an example, based on the user search view, where the user pictures are presented inside a TableView column:
      <ColumnGate name="AUSESOURCE" resource="/doc/{AUSEID}.jpg" />
      As we can see the name of the resource is based on the AUSEID field.
      Parameters:
      s - The string that defines the format of the name of the resource that will be loaded
    • setINITIALS

      public void setINITIALS(String vals)
    • setupMetaData

      public void setupMetaData(DBView dbv)
      Description copied from class: Column
      Called to init all the field starting form the DBView
      Overrides:
      setupMetaData in class Column
      Parameters:
      dbv - The DBView with all the field used in the init
    • grillName

      protected String grillName()
    • setup

      public void setup()
      Description copied from class: Component
      Setup the Component
      Overrides:
      setup in class Column
    • setIMGWIDTH

      public void setIMGWIDTH(String s)
      Sets the width of the image
      Parameters:
      s - The width of the image, expressed in pixels
    • setIMGHEIGHT

      public void setIMGHEIGHT(String s)
      Sets the height of the image
      Parameters:
      s - The height of the image, expressed in pixels
    • setCSS

      public void setCSS(String s)
      Sets the css class that will be applied to the image. This attribute is suggested for create a custom visual effects.
      Parameters:
      s - The string that defines a css class
    • setBASE

      public void setBASE(String s)
      Sets the WebResource
      Parameters:
      s - The string that defines the resource
    • gatePrefix

      protected String gatePrefix()
    • getHtmlRow

      public org.apache.ecs.Element getHtmlRow(EntitySet es, int row, int pagerow, ArrayList al)
      Description copied from class: Column
      Returns the html element that defines the row
      Overrides:
      getHtmlRow in class Column
      Parameters:
      es - The EntitySet to which the element belongs
      row - The number of the row
      pagerow - The number ofd the page
      al - The list of values of the row
      Returns:
      The html element that defines the row
    • getDefaultLayoutLabel

      public String getDefaultLayoutLabel()
      Overrides:
      getDefaultLayoutLabel in class Column