com.groiss.dms.html
Class DMSObjectTable

java.lang.Object
  extended by com.dec.gi.ui.Table
      extended by com.groiss.dms.html.DMSObjectTable
All Implemented Interfaces:
java.io.Serializable

public class DMSObjectTable
extends com.dec.gi.ui.Table

See Also:
Serialized Form

Field Summary
protected  java.util.Map attachedNotes
           
protected static java.util.Vector cols
           
protected  java.util.List columnDescriptors
           
protected  java.util.List contents
           
protected  com.groiss.dms.impl.FolderColumn fc
           
protected  DMSFolder folder
           
protected  java.util.Map formFields
           
protected  java.lang.Integer from
           
static java.lang.Integer FROM_PROCESSHISTORY
          Determines that the list of documents is shown from the process history (read-only mode).
static java.lang.Integer FROM_ROLESUSPENSIONLIST
          Determines that the list of documents is shown from the role suspension list (read-only mode).
static java.lang.Integer FROM_ROLEWORKLIST
          Determines that the list of documents is shown from the role-worklist (read-only mode).
static java.lang.Integer FROM_SUSPENSIONLIST
          Determines that the list of documents is shown from the suspensionlist (read-only mode).
static java.lang.Integer FROM_UNDEF
          Determines that the list of documents is shown from an unknown source in read-write mode.
static java.lang.Integer FROM_WORKLIST
          Determines that the list of documents is shown from the worklist (read-write mode).
protected  DMSTableHandler handler
           
protected  int maxCol
           
protected  int mode
           
protected  java.lang.String pathToRoot
           
protected  java.lang.String pathToRootString
           
protected  boolean readonly_rec
           
protected  java.lang.String referer
           
protected  javax.servlet.http.HttpServletRequest request
           
static int RO
          Determines that the user has only view right for the folder.
static int RO_REC
          Determines that the user has only view right for the folder and all its content elements.
protected  boolean rootIsProcess
           
static int RW
          Determines that the user has edit right for the folder.
protected  int sc
           
protected  int sort
           
protected  boolean sortable
           
protected static java.lang.String target
           
protected  com.dec.avw.core.StepInstance task
           
protected  com.dec.avw.core.User user
           
protected  java.util.Map versions
           
protected  java.util.Map versionsNew
           
 
Fields inherited from class com.dec.gi.ui.Table
ascending, column, link, selection, SELECTION_HIDDEN, SELECTION_LINK, SELECTION_MULTIPLE, SELECTION_NONE, SELECTION_SINGLE, table, title
 
Constructor Summary
DMSObjectTable()
           
 
Method Summary
protected  java.lang.String getAction(java.lang.String actionId)
           
 java.lang.String getActions()
          Returns a string specifying the actions availabel for the table.
protected  java.lang.String[] getColumnIds()
          Returns the ids for the columns.
protected  java.lang.Object getColumnValue(DMSObject doc, java.lang.String col)
          Returns the value that should be displayed for the passed object in the passed column
 java.lang.String getEditUrl(DMSObject object)
           
 java.lang.String getEditUrl(DMSObject object, boolean inplace)
           
 java.lang.String getFooter()
          This method builds buttons beneath the table and a hidden field including the folder
 HTMLPage getHTMLPage()
          Returns the html page into which the table should be integrated.
protected  long getKey(int row)
           
 Pair getLink2(java.lang.Long oid)
           
 java.lang.String getMetadataUrl(DMSObject object)
           
 java.lang.String getMetadataUrl(DMSObject object, DMSFolder fldr, com.dec.avw.core.StepInstance tsk, boolean ro_rec)
           
 int getSelectionMode()
          Returns the selection mode for the table entries.
 javax.swing.table.TableModel getTable()
          this method builds the tablemodel (rows and columns)
protected  java.lang.Object[] getTableHeader()
          This method builds the table header.
protected  java.lang.Object[] getTableLine(DMSObject doc)
          This method builds the table data - the rows
 HTMLPage getTableMask()
          Returns the html template used for this table.
 java.lang.String getTitle()
          Defines the title of the table
 boolean isSortable(int i)
          Returns if the i-th column is sortable
 java.lang.String lineStyle(int i, java.lang.String style)
           
protected  java.util.List listContents()
           
 void setLink(Pair link)
           
 void setParams(com.dec.avw.core.User u, javax.servlet.http.HttpServletRequest req, java.util.Vector args)
          Sets the parameters after the table has been constructed by HTMLTable
 void setParams(com.dec.avw.core.User u, java.util.Vector v)
           
 void setSortable(boolean sortable)
          Sets if the table will be sortable
 void sortByColumn(int col, boolean asc)
          Sets after which column should be sorted and what the sort order is
 
Methods inherited from class com.dec.gi.ui.Table
elementAt, getColumnIdList, getFilterId, getId, getSortColumn, getValueAt, listFilters, setLink2, setRequest, setSelectionMode, sortAscending
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM_WORKLIST

public static final java.lang.Integer FROM_WORKLIST
Determines that the list of documents is shown from the worklist (read-write mode). The back button returns to the worklist.


FROM_ROLEWORKLIST

public static final java.lang.Integer FROM_ROLEWORKLIST
Determines that the list of documents is shown from the role-worklist (read-only mode). The back button returns to the role-worklist.


FROM_SUSPENSIONLIST

public static final java.lang.Integer FROM_SUSPENSIONLIST
Determines that the list of documents is shown from the suspensionlist (read-only mode). The back button returns to the suspensionlist.


FROM_PROCESSHISTORY

public static final java.lang.Integer FROM_PROCESSHISTORY
Determines that the list of documents is shown from the process history (read-only mode). The back button returns to the process history.


FROM_UNDEF

public static final java.lang.Integer FROM_UNDEF
Determines that the list of documents is shown from an unknown source in read-write mode. The back button performs a history.back().


FROM_ROLESUSPENSIONLIST

public static final java.lang.Integer FROM_ROLESUSPENSIONLIST
Determines that the list of documents is shown from the role suspension list (read-only mode). The back button returns to the role suspension list.


RW

public static final int RW
Determines that the user has edit right for the folder.

See Also:
Constant Field Values

RO

public static final int RO
Determines that the user has only view right for the folder.

See Also:
Constant Field Values

RO_REC

public static final int RO_REC
Determines that the user has only view right for the folder and all its content elements.

See Also:
Constant Field Values

folder

protected DMSFolder folder

user

protected com.dec.avw.core.User user

sort

protected int sort

from

protected java.lang.Integer from

sortable

protected boolean sortable

cols

protected static java.util.Vector cols

maxCol

protected int maxCol

readonly_rec

protected boolean readonly_rec

sc

protected int sc

mode

protected int mode

request

protected javax.servlet.http.HttpServletRequest request

task

protected com.dec.avw.core.StepInstance task

pathToRootString

protected java.lang.String pathToRootString

fc

protected com.groiss.dms.impl.FolderColumn fc

pathToRoot

protected java.lang.String pathToRoot

rootIsProcess

protected boolean rootIsProcess

target

protected static java.lang.String target

referer

protected java.lang.String referer

handler

protected DMSTableHandler handler

columnDescriptors

protected java.util.List columnDescriptors

contents

protected java.util.List contents

versions

protected java.util.Map versions

versionsNew

protected java.util.Map versionsNew

attachedNotes

protected java.util.Map attachedNotes

formFields

protected java.util.Map formFields
Constructor Detail

DMSObjectTable

public DMSObjectTable()
Method Detail

getTable

public javax.swing.table.TableModel getTable()
this method builds the tablemodel (rows and columns)

Specified by:
getTable in class com.dec.gi.ui.Table

listContents

protected java.util.List listContents()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getTableHeader

protected java.lang.Object[] getTableHeader()
This method builds the table header.


getTableLine

protected java.lang.Object[] getTableLine(DMSObject doc)
                                   throws java.lang.Exception
This method builds the table data - the rows

Throws:
java.lang.Exception

getColumnIds

protected java.lang.String[] getColumnIds()
Returns the ids for the columns. These ids are passed to method getColumnValue(DMSObject, String)


getColumnValue

protected java.lang.Object getColumnValue(DMSObject doc,
                                          java.lang.String col)
                                   throws java.lang.Exception
Returns the value that should be displayed for the passed object in the passed column

Throws:
java.lang.Exception

getFooter

public java.lang.String getFooter()
This method builds buttons beneath the table and a hidden field including the folder

Overrides:
getFooter in class com.dec.gi.ui.Table

getTitle

public java.lang.String getTitle()
Defines the title of the table

Overrides:
getTitle in class com.dec.gi.ui.Table

setParams

public void setParams(com.dec.avw.core.User u,
                      java.util.Vector v)
Overrides:
setParams in class com.dec.gi.ui.Table

setParams

public void setParams(com.dec.avw.core.User u,
                      javax.servlet.http.HttpServletRequest req,
                      java.util.Vector args)
Sets the parameters after the table has been constructed by HTMLTable

Overrides:
setParams in class com.dec.gi.ui.Table

getSelectionMode

public int getSelectionMode()
Returns the selection mode for the table entries.

Overrides:
getSelectionMode in class com.dec.gi.ui.Table

setSortable

public void setSortable(boolean sortable)
Sets if the table will be sortable


isSortable

public boolean isSortable(int i)
Returns if the i-th column is sortable

Specified by:
isSortable in class com.dec.gi.ui.Table

sortByColumn

public void sortByColumn(int col,
                         boolean asc)
Sets after which column should be sorted and what the sort order is

Overrides:
sortByColumn in class com.dec.gi.ui.Table

getLink2

public Pair getLink2(java.lang.Long oid)
Overrides:
getLink2 in class com.dec.gi.ui.Table

setLink

public void setLink(Pair link)

getHTMLPage

public HTMLPage getHTMLPage()
                     throws java.lang.Exception
Returns the html page into which the table should be integrated. Here some placeholder substitutions can be made

Overrides:
getHTMLPage in class com.dec.gi.ui.Table
Throws:
java.lang.Exception

getTableMask

public HTMLPage getTableMask()
                      throws java.lang.Exception
Returns the html template used for this table. No substitutions will take place here, only the template is returned as it is read e.g. from the file system

Overrides:
getTableMask in class com.dec.gi.ui.Table
Throws:
java.lang.Exception

getEditUrl

public java.lang.String getEditUrl(DMSObject object)

getEditUrl

public java.lang.String getEditUrl(DMSObject object,
                                   boolean inplace)

getMetadataUrl

public java.lang.String getMetadataUrl(DMSObject object)

getMetadataUrl

public java.lang.String getMetadataUrl(DMSObject object,
                                       DMSFolder fldr,
                                       com.dec.avw.core.StepInstance tsk,
                                       boolean ro_rec)

getActions

public java.lang.String getActions()
Returns a string specifying the actions availabel for the table. The string contains the actions seperated by blank (e.g. "newDocument newFolder ... ").

Overrides:
getActions in class com.dec.gi.ui.Table

getAction

protected java.lang.String getAction(java.lang.String actionId)

lineStyle

public java.lang.String lineStyle(int i,
                                  java.lang.String style)
Overrides:
lineStyle in class com.dec.gi.ui.Table

getKey

protected long getKey(int row)


Copyright © 2001-2006 Groiss Informatics GmbH. All Rights Reserved.