|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dec.gi.ui.Table
com.groiss.dms.html.DMSObjectTable
public class DMSObjectTable
| 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 |
|---|
public static final java.lang.Integer FROM_WORKLIST
public static final java.lang.Integer FROM_ROLEWORKLIST
public static final java.lang.Integer FROM_SUSPENSIONLIST
public static final java.lang.Integer FROM_PROCESSHISTORY
public static final java.lang.Integer FROM_UNDEF
public static final java.lang.Integer FROM_ROLESUSPENSIONLIST
public static final int RW
public static final int RO
public static final int RO_REC
protected DMSFolder folder
protected com.dec.avw.core.User user
protected int sort
protected java.lang.Integer from
protected boolean sortable
protected static java.util.Vector cols
protected int maxCol
protected boolean readonly_rec
protected int sc
protected int mode
protected javax.servlet.http.HttpServletRequest request
protected com.dec.avw.core.StepInstance task
protected java.lang.String pathToRootString
protected com.groiss.dms.impl.FolderColumn fc
protected java.lang.String pathToRoot
protected boolean rootIsProcess
protected static java.lang.String target
protected java.lang.String referer
protected DMSTableHandler handler
protected java.util.List columnDescriptors
protected java.util.List contents
protected java.util.Map versions
protected java.util.Map versionsNew
protected java.util.Map attachedNotes
protected java.util.Map formFields
| Constructor Detail |
|---|
public DMSObjectTable()
| Method Detail |
|---|
public javax.swing.table.TableModel getTable()
getTable in class com.dec.gi.ui.Table
protected java.util.List listContents()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Object[] getTableHeader()
protected java.lang.Object[] getTableLine(DMSObject doc)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String[] getColumnIds()
getColumnValue(DMSObject, String)
protected java.lang.Object getColumnValue(DMSObject doc,
java.lang.String col)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getFooter()
getFooter in class com.dec.gi.ui.Tablepublic java.lang.String getTitle()
getTitle in class com.dec.gi.ui.Table
public void setParams(com.dec.avw.core.User u,
java.util.Vector v)
setParams in class com.dec.gi.ui.Table
public void setParams(com.dec.avw.core.User u,
javax.servlet.http.HttpServletRequest req,
java.util.Vector args)
setParams in class com.dec.gi.ui.Tablepublic int getSelectionMode()
getSelectionMode in class com.dec.gi.ui.Tablepublic void setSortable(boolean sortable)
public boolean isSortable(int i)
isSortable in class com.dec.gi.ui.Table
public void sortByColumn(int col,
boolean asc)
sortByColumn in class com.dec.gi.ui.Tablepublic Pair getLink2(java.lang.Long oid)
getLink2 in class com.dec.gi.ui.Tablepublic void setLink(Pair link)
public HTMLPage getHTMLPage()
throws java.lang.Exception
getHTMLPage in class com.dec.gi.ui.Tablejava.lang.Exception
public HTMLPage getTableMask()
throws java.lang.Exception
getTableMask in class com.dec.gi.ui.Tablejava.lang.Exceptionpublic java.lang.String getEditUrl(DMSObject object)
public java.lang.String getEditUrl(DMSObject object,
boolean inplace)
public java.lang.String getMetadataUrl(DMSObject object)
public java.lang.String getMetadataUrl(DMSObject object,
DMSFolder fldr,
com.dec.avw.core.StepInstance tsk,
boolean ro_rec)
public java.lang.String getActions()
getActions in class com.dec.gi.ui.Tableprotected java.lang.String getAction(java.lang.String actionId)
public java.lang.String lineStyle(int i,
java.lang.String style)
lineStyle in class com.dec.gi.ui.Tableprotected long getKey(int row)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||