public interface Listblock
| Modifier and Type | Method and Description |
|---|---|
List |
allLines()
Returns a list of ListblockLine containing all lines in the listblock.
|
boolean |
callHooksBeforeInsert(ListblockLine line)
Forwards call to the hook method before insert.
|
boolean |
checkForeignNodes()
Returns the boolean value of the checkForeignNodes property.
|
void |
clearEditFields()
Recursivly clears the edit fields of this table.
|
void |
clearSelectedLines()
Unselects any selected line from the listblock.
|
ListblockLine |
findInList(Object domainObject)
Returns the line that keeps an instance of the specified domain object,
or
null if no such line is found. |
void |
forceClean()
Marks all lines as not deleted, changed or new, without copying of old
data
|
List |
getAsHTMLTable(int maxRows,
boolean incHidden,
Set excludedColumns,
Map tagOptions)
Returns a list of strings with the data in the listblock as html tables.
|
List |
getChangedLines()
Returns a list of ListblockLine containing the changed lines in the
listblock.
|
int |
getLastRowLine()
Returns the last row in the listblock
|
ListblockLine |
getLine(int rowIndex)
Returns the listblock line with the specified row number, or
null
if no such row exists. |
ListblockLine |
getNewListblockLine()
Returns a new list block line object.
|
Set |
getRoleNamesInUse()
Returns the set of role names displayed by the listblock.
|
int |
getSelectedLine()
Returns the position of the selected line in the list.
|
int[] |
getSelectedLines()
Returns a list of indexes of all selected lines in the list.
|
List |
getSelectedLinesObject()
Returns a list containig the selected lines.
|
G9Table |
getTable()
Returns the G9Table responsible for displaying this table
|
boolean |
hasFocus()
Returns true if the component is focused.
|
void |
hideColumn(List attributeNames)
Hides the specified colunms.
|
void |
hideColumn(String attributeName)
Hides the specified column.
|
void |
insertNewListblockLine(ListblockLine listBlockLine)
Inserts a listblock line at the end of the list block.
|
void |
makeRowVisible(int row)
Scrolls the listblock to make sure that a given row is shown to the user.
|
List |
obtainChangedLines()
Gets the obtained version of all changed lines.
|
void |
purgeAllLines()
Purges all lines from the list block.
|
void |
requestFocus()
Request focus to this component.
|
void |
setCheckForeignNodes(Boolean doCheck)
Set the checkForeginNode property.
|
void |
setColumnHeaderValue(String attributeName,
String value)
Sets the header value of the specified column.
|
void |
setListblockEditing(boolean f)
Set or enables listblock editing within the listblock (has hidden edit
fields).
|
void |
setPopupMenu(String menuName)
Sets which popup menu to be used for this listblock.
|
void |
setSelectedLine(int line)
Selects a line in the list.
|
void |
setSelectedLine(ListblockLine line)
Selects a line in the list.
|
void |
setSelectedLines(int[] lines)
Selects a set of lines in the list.
|
void |
setUpdateWhenManipulated(boolean f)
Setting update when manipulated to false will not make the GUI update
itself when the data in the listblock is modified using
insert/update/delete calls.
|
void |
showColumn(List attributeNames)
Shows the specified columns.
|
void |
showColumn(String attributeName)
Shows the specified column.
|
int |
size()
Returns number of lines in the listblock, regardless of the
listblocklines status.
|
List getAsHTMLTable(int maxRows, boolean incHidden, Set excludedColumns, Map tagOptions)
maxRows - The number of rows in the listblock for a split.incHidden - If true, the table will Include hidden fields in output.excludedColumns - String set of columns to be excloded. They must be
on the form "objselection.attribute"tagOptions - A map containing the following keys: TH - Added to each
TH. TD - Added to each TD. TABLE - added to table tag. TR -
added to each TR.void setUpdateWhenManipulated(boolean f)
listblockMethodsObj.setUpdateWhenManipulated(false);
...do all inserts
listblockMethodsObj.setUpdateWhenManipulated(true);
listblockMethodsObj.forceClean();
f - Default setting is true.int size()
void setPopupMenu(String menuName)
menuName - The menu name to use.boolean hasFocus()
void requestFocus()
int getLastRowLine()
void setListblockEditing(boolean f)
f - If true, the listblock may be edited in, if false, editing is
disabled.void makeRowVisible(int row)
row - The row number, starting with Index 0.Set getRoleNamesInUse()
void insertNewListblockLine(ListblockLine listBlockLine)
listBlockLine - the line to insert.ListblockLine getNewListblockLine()
boolean callHooksBeforeInsert(ListblockLine line)
line - - listblock line to insertList getChangedLines()
List obtainChangedLines()
List allLines()
void forceClean()
void purgeAllLines()
void clearSelectedLines()
int getSelectedLine()
List getSelectedLinesObject()
ListblockLines.int[] getSelectedLines()
void setSelectedLine(int line)
line - The row to select.void setSelectedLine(ListblockLine line)
line - The row to select.void setSelectedLines(int[] lines)
lines - An array of integers containing the indices of all lines to
select.G9Table getTable()
void hideColumn(String attributeName)
attributeName - a String denoting the fully qualified attribute
name, e.g. "roleName.attr"G9ClientException - if the specified column does not exist.void hideColumn(List attributeNames)
attributeNames - a List of attribute names of columns to hide.G9ClientException - if the specified column does not exist.hideColumn(String)void showColumn(String attributeName)
attributeName - a String denoting the fully qualified attribute
name, e.g. "roleName.attr"G9ClientException - if the specified column does not exist.void showColumn(List attributeNames)
attributeNames - a List of attribute names of columns to hide.G9ClientException - if the specified column does not exist.showColumn(String)void setColumnHeaderValue(String attributeName, String value)
attributeName - a String denoting the fully qualified attribute
name, e.g. "roleName.attr"value - the header value.G9ClientException - if the specified column does not exist.void clearEditFields()
ListblockLine findInList(Object domainObject)
null if no such line is found. The search is performed
from the top of the listblock, and returns immediately if a match is
found.domainObject - the domain object to search fornull if no
such line is found.void setCheckForeignNodes(Boolean doCheck)
doCheck parameter
differs from null the global checkForeingNode property is
overridden for this Listblock instance, and the overridden value will be
used when checkRowSelect method on the listblock role's node determines
which nodes to check. In order to use the application's checkForegingNode
property, pass a null-reference to this method.doCheck - the value of the checkForeginNodes property.checkForeignNodes(),
ApplicationMethods.setCheckForeignNodes(boolean),
ApplicationMethods.checkForeignNodes()boolean checkForeignNodes()
setCheckForeignNodes(Boolean),
ApplicationMethods.setCheckForeignNodes(boolean),
ApplicationMethods.checkForeignNodes()ListblockLine getLine(int rowIndex)
null
if no such row exists.rowIndex - the row indexCopyright © 2006–2020 Esito AS. All rights reserved.