|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.config.UWLView
UWLView will define the characteristics used to create a Table for displaying the list of items return by the specified ItemTypes.
The UWL view will control the table size, columns to display, sort information, and other information which is defined in the standard or custom XML file. (see example XML)
<View name="DefaultView" width="98%" supportedItemTypes="uwl.task" columnOrder="subject, isEscalated, creatorId, createdDate, priority, attachmentCount, dueDate, status" sortby="priority:descend, dueDate:ascend, createdDate:descend" selectionMode="SINGLESELECT" tableDesign="STANDARD" visibleRowCount="10"
headerVisible="no" tableNavigationFooterVisible="yes"...In the UWL filters can also be defined to allow the user to narrow down the result set easier.
Table Header - Title (See getHeaderText() and
isHeaderVisible()) |
||
Column Header 1 (See getColumnOrder() |
Column Header 2 | Column Header 3 |
Row 1 (See getVisbleRowSize()) |
||
| Row 2 | ||
Table Footer - Table Navigation Area (See isFooterVisible()) |
||
DisplayAttribute,
CompoundExpression,
Serialized Form| Field Summary | |
static String |
DESIGN_ALTERNATING
Used as a value to pass to the method setTableDesign(java.lang.String) |
static String |
DESIGN_STANDARD
Used as a value to pass to the method setTableDesign(java.lang.String) |
static String |
EMPHASIZEDITEMS_NEW
Used as a value to pass to the method setEmphasizedItems(java.lang.String) |
static String |
EMPHASIZEDITEMS_NONE
Used as a value to pass to the method setEmphasizedItems(java.lang.String) |
static String |
EMPHASIZEDITEMS_UNREAD
Used as a value to pass to the method setEmphasizedItems(java.lang.String) |
static String |
NAV_BRIEF
Used as a value to pass to the method setTableNavigationMode(java.lang.String) |
static String |
NAV_POWER
Used as a value to pass to the method setTableNavigationMode(java.lang.String) |
static String |
NAV_STANDARD
Used as a value to pass to the method setTableNavigationMode(java.lang.String) |
static String |
PERSONAL_VIEW
Used to indicate this is a personalized view. |
static String |
SELECTION_MULTI
Used as a value to pass to the method setSelectionMode(java.lang.String) |
static String |
SELECTION_NONE
Used as a value to pass to the method setSelectionMode(java.lang.String) |
static String |
SELECTION_SINGLE
Used as a value to pass to the method setSelectionMode(java.lang.String) |
static String |
SYSTEM_VIEW
Used to indicate the owner of the View. |
static String |
UWL_DEFAULT_SORTBY_NAME
Used as the name of a SortGroup to indicate the main sortBy properties should be used. |
| Constructor Summary | |
UWLView()
Constructor. |
|
| Method Summary | |
void |
addAllowedFilters(CompoundExpression ceRet)
Method addAllowedFilters. |
void |
addFilter(CompoundExpression filter)
Method addFilter. |
Object |
clone()
|
void |
deleteFilter(CompoundExpression filter)
Method deleteFilter. |
String |
getActionPosition()
Determine where in the Table the Global actions should be displayed. |
String |
getActionRef()
Returns the actions names which are to be used in the global action section. |
String[] |
getColumnOrder()
Returns the columnOrder. |
String[] |
getColumnsWhichHaveDisplayAttributes()
|
CompoundExpression |
getDefaultFilter()
Returns the defaultFilter. |
DisplayAttribute |
getDisplayAttribute(String name)
Return the Display Attribute by its name. |
List |
getDisplayAttributeForGroupAction()
Get a list of all the DisplayAttributes which have an Action of type User Decision assigned to them. |
DisplayAttributes |
getDisplayAttributes()
Returns the displayAttributes. |
DisplayAttribute[] |
getDisplayAttributesWhichHaveColumns()
A View has many display attributes defined. |
Descriptions |
getDisplayName()
Returns the displayName. |
String |
getEmphasizedItems()
This is used to determine if the return items should be displayed as emphasized. |
CompoundExpression[] |
getFilters()
Returns the filters. |
Action |
getGlobalAction(String name)
Return action which should be displayed in the Table (First row or Bottom row) by its name. |
Action[] |
getGlobalActions()
Return actions which should be displayed in the Table (First row or Bottom row). |
String |
getGroupColumn()
Returns the groupColumn. |
String |
getHeaderText()
Deprecated. Use the getDescription method to support localization. |
long |
getIndicateDueDateSevere()
|
long |
getIndicateDueDateWarning()
|
String[] |
getItemTypes()
Returns the itemTypes. |
Set |
getItemTypesSet()
Return the supported ItemTypes as a Set. |
String |
getLongText(Locale locale)
Get the long text for the specified locale. |
String |
getName()
Returns the name. |
String |
getNamespace()
Deprecated. This is no longer used. |
String |
getOwner()
This is used internaly to determine if this is a system or personalzied view. |
DateFilterEnum |
getQueryTimeRange()
Specify how far to go back to get items. |
String |
getReferenceBundle()
Used internally |
long |
getRefreshRate()
|
String |
getSelectionMode()
Returns the selectionMode. |
String |
getShortText(Locale locale)
Return the display name text for the specified Locale. |
String[] |
getSortColumnNames()
Return the SortColumn names only with out the direction. |
String[] |
getSortColumns()
Returns the sortColumns, also has ascend or desending appended to the names. |
boolean[] |
getSortOrder()
Return a array of booleans which correspond to the sort columns to indicate (true) ascending or (false) descending order. |
String |
getTableDesign()
Returns the tableDesign. |
String |
getTableNavigationMode()
Deprecated. This only support in the HTMLB versions |
int |
getVisbleRowSize()
Returns the visbleRowSize. |
String |
getWidth()
Returns the width. |
boolean |
globalReferencesInitialized()
For internal use only |
boolean |
isDisplayOnlyDefinedAttributes()
Used to determine if only the Defined Attributes in a item shuld be displayed in the preview area. |
boolean |
isDynamicCreationAllowed()
This used to determine, when create dynamic views in the Navigation node, if this view should be included. |
boolean |
isEmphasizedItemsNew()
Indicates if the items should not be Emphasized if they are new |
boolean |
isEmphasizedItemsNone()
Indicates if the items should not be Emphasized |
boolean |
isEmphasizedItemsUnread()
Indicates if the items should be Emphasized if they are unread |
boolean |
isFooterVisible()
Returns the footerVisible. |
boolean |
isHeaderVisible()
Returns the headerVisible. |
boolean |
isPersonalized()
If the user has saved the view then this flag will be true. |
void |
setActionPosition(String string)
Indicate if the actions are to be display at the top or bottom of the Table. |
void |
setActionRef(String string)
used internally only |
void |
setColumnOrder(String[] columnOrder)
Sets the columnOrder. |
void |
setDefaultFilter(CompoundExpression defaultFilter)
Sets the defaultFilter. |
void |
setDisplayAttributes(DisplayAttributes da)
Method setDisplayAttributes. |
void |
setDisplayAttributesForGroupAction(List li)
For internal use only |
void |
setDisplayName(Descriptions descriptions)
Sets the displayName. |
void |
setDisplayOnlyDefinedAttributes(boolean b)
|
void |
setDynamicCreationAllowed(boolean b)
Allow this view to be added to the dynamic Navigation node list. |
void |
setEmphasizedItems(String string)
Set how the items should be displayed. |
void |
setFilters(CompoundExpression[] filters)
Sets the filters. |
void |
setFooterVisible(boolean footerVisible)
Sets the footerVisible. |
void |
setGlobalActions(Action[] globalActions)
Sets the globalActions. |
void |
setGlobalReferencesInitialized()
For internal use only |
void |
setGroupColumn(String groupColumn)
Sets the groupColumn. |
void |
setHeaderText(String headerText)
Deprecated. use setDisplayName to support localization |
void |
setHeaderVisible(boolean headerVisible)
Sets the headerVisible. |
void |
setIndicateDueDateSevere(long l)
Set when the the item should marked as severe when the due date is getting near. |
void |
setIndicateDueDateSevere(String value)
Set when the the item should marked as severe when the due date is getting near. |
void |
setIndicateDueDateSevereDays(int days)
Set when the the item should marked as severe when the due date is getting near. |
void |
setIndicateDueDateWarning(long l)
Set when the the item should marked as warning when the due date is getting near. |
void |
setIndicateDueDateWarning(String value)
Set when the the item should marked as warning when the due date is getting near. |
void |
setIndicateDueDateWarningDays(int days)
Set when the the item should marked as warning when the due date is getting near. |
void |
setItemTypes(HashSet itemTyp)
Sets the itemTypes. |
void |
setName(String name)
Sets the name. |
void |
setNameSpace(String nameSpace)
Deprecated. This is no longer used |
void |
setOwner(String string)
This is used internaly to set if this is a system or personalzied view. |
void |
setPersonalized(boolean b)
This is used internaly to determine if user has personalzied view. |
void |
setQueryTimeRange(DateFilterEnum enum)
Specify how far back to retrieve item data for. |
void |
setQueryTimeRange(String value)
Specify how far back to retrieve item data for. |
void |
setReferenceBundle(String ref)
Used internally to set DisplayName in the xml file |
void |
setRefreshRate(long l)
Set the refresh Rate in seconds. |
void |
setRefreshRate(String value)
Set the timer to have the UWL UI page check for new items. |
void |
setRefreshRateMinutes(int i)
Set the refresh Rate in minutes. |
void |
setSelectionMode(String selectionMode)
Sets the selectionMode. |
void |
setSortColumns(String[] sortColumns)
Sets the columns and direction in which the item will be sorted on when displayed to the user. |
void |
setTableDesign(String tableDesign)
Sets the tableDesign. |
void |
setTableNavigationMode(String tableNavigationMode)
Deprecated. This only support in the HTMLB versions |
void |
setVisbleRowSize(int visbleRowSize)
Sets the visbleRowSize. |
void |
setWidth(String width)
Sets the width. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String DESIGN_ALTERNATING
setTableDesign(java.lang.String)
public static final String DESIGN_STANDARD
setTableDesign(java.lang.String)
public static final String NAV_STANDARD
setTableNavigationMode(java.lang.String)
public static final String NAV_POWER
setTableNavigationMode(java.lang.String)
public static final String NAV_BRIEF
setTableNavigationMode(java.lang.String)
public static final String SELECTION_NONE
setSelectionMode(java.lang.String)
public static final String SELECTION_SINGLE
setSelectionMode(java.lang.String)
public static final String SELECTION_MULTI
setSelectionMode(java.lang.String)
public static final String EMPHASIZEDITEMS_NONE
setEmphasizedItems(java.lang.String)
public static final String EMPHASIZEDITEMS_UNREAD
setEmphasizedItems(java.lang.String)
public static final String EMPHASIZEDITEMS_NEW
setEmphasizedItems(java.lang.String)
public static final String UWL_DEFAULT_SORTBY_NAME
public static final String SYSTEM_VIEW
public static final String PERSONAL_VIEW
| Constructor Detail |
public UWLView()
| Method Detail |
public void addFilter(CompoundExpression filter)
filter - public void deleteFilter(CompoundExpression filter)
filter - public String[] getColumnOrder()
DisplayAttributepublic CompoundExpression getDefaultFilter()
public DisplayAttributes getDisplayAttributes()
getColumnOrder()public DisplayAttribute getDisplayAttribute(String name)
name -
getDisplayAttributes(),
getColumnOrder()public String getShortText(Locale locale)
locale -
public String getLongText(Locale locale)
locale -
public Descriptions getDisplayName()
public CompoundExpression[] getFilters()
public boolean isFooterVisible()
public Action[] getGlobalActions()
public Action getGlobalAction(String name)
name -
public String getGroupColumn()
public String getHeaderText()
public boolean isHeaderVisible()
public String[] getItemTypes()
public String getSelectionMode()
NONE - No row selection allowed. SINGLESELECT - Only one row can be selected at a time. MULTISELECT - One or more rows can be selected.
public String[] getSortColumns()
getSortColumnNames(),
getSortOrder()public String getTableDesign()
ALTERNATING STANDARD TRANSPARENT
public String getTableNavigationMode()
STANDARD POWERNAV BRIEFNAV CUSTOMNAV
public int getVisbleRowSize()
public String getWidth()
public void setColumnOrder(String[] columnOrder)
columnOrder - The columnOrder to setgetDisplayAttributes(),
getColumnOrder()public void setDefaultFilter(CompoundExpression defaultFilter)
defaultFilter - The defaultFilter to setpublic void setDisplayName(Descriptions descriptions)
public void setFooterVisible(boolean footerVisible)
footerVisible - The footerVisible to setisFooterVisible()public void setGlobalActions(Action[] globalActions)
globalActions - The globalActions to setgetGlobalActions()public void setGroupColumn(String groupColumn)
groupColumn - The groupColumn to setpublic void setHeaderText(String headerText)
headerText - The headerText to setpublic void setHeaderVisible(boolean headerVisible)
headerVisible - The headerVisible to setpublic void setNameSpace(String nameSpace)
nameSpace - The nameSpace to setpublic void setSelectionMode(String selectionMode)
selectionMode - The selectionMode to setgetSelectionMode()public void setSortColumns(String[] sortColumns)
Example {"subject:desc","priority:asc"}
Note: Maximum of 3 sort columns can be defined at a time.
sortColumns - The sortColumns to setgetSortColumns()public void setTableDesign(String tableDesign)
tableDesign - The tableDesign to setgetTableDesign()public void setTableNavigationMode(String tableNavigationMode)
tableNavigationMode - The tableNavigationMode to setgetTableNavigationMode()public void setVisbleRowSize(int visbleRowSize)
visbleRowSize - The visbleRowSize to setpublic void setWidth(String width)
width - The width to setpublic String getName()
public void setName(String name)
name - The name to setpublic void addAllowedFilters(CompoundExpression ceRet)
ceRet - public void setDisplayAttributes(DisplayAttributes da)
da - public String getNamespace()
public void setFilters(CompoundExpression[] filters)
filters - The filters to setpublic void setItemTypes(HashSet itemTyp)
public Set getItemTypesSet()
public String getActionRef()
public void setActionRef(String string)
string -
public Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionObject.clone()public String getOwner()
SYSTEM_VIEW,
PERSONAL_VIEWpublic void setOwner(String string)
string - public long getIndicateDueDateSevere()
public long getIndicateDueDateWarning()
public long getRefreshRate()
public void setIndicateDueDateSevere(long l)
l - public void setIndicateDueDateSevereDays(int days)
public void setIndicateDueDateWarning(long l)
l - public void setIndicateDueDateWarningDays(int days)
public void setRefreshRate(long l)
l - public void setRefreshRateMinutes(int i)
i - public void setIndicateDueDateSevere(String value)
value - public void setIndicateDueDateWarning(String value)
value - public void setRefreshRate(String value)
value - setRefreshRate(long),
setRefreshRateMinutes(int)public String getEmphasizedItems()
setEmphasizedItems(String)public void setEmphasizedItems(String string)
string - EMPHASIZEDITEMS_UNREAD,
EMPHASIZEDITEMS_NEW,
EMPHASIZEDITEMS_NONEpublic boolean isEmphasizedItemsUnread()
public boolean isEmphasizedItemsNone()
public boolean isEmphasizedItemsNew()
public boolean isDisplayOnlyDefinedAttributes()
public void setDisplayOnlyDefinedAttributes(boolean b)
b - isDisplayOnlyDefinedAttributes()public String getActionPosition()
TOP - First row of the Table BOTTOM - Last row of the Table. BOTH - (Future enhancement)
public void setActionPosition(String string)
string - getActionPosition()public String getReferenceBundle()
public void setReferenceBundle(String ref)
ref - public boolean isDynamicCreationAllowed()
NOTE: The higher the number of ItemTypes the more likely this view will be added, since there is a limit on the number of views to be added. Views with more ItemType are added first.
IUWLViewManager.getItemTypeNavigationNode(NavigationNode, String[], UWLContext, String, int, String, String) methodIUWLViewManager.appendItemTypesWithItems(NavigationNode, UWLContext, String, int, String, String, ItemTypeCount[])public void setDynamicCreationAllowed(boolean b)
b - isDynamicCreationAllowed(),
IUWLViewManager.appendItemTypesWithItems(NavigationNode, UWLContext, String, int, String, String, ItemTypeCount[])public DateFilterEnum getQueryTimeRange()
public void setQueryTimeRange(DateFilterEnum enum)
enum - public void setQueryTimeRange(String value)
public boolean globalReferencesInitialized()
public void setGlobalReferencesInitialized()
public List getDisplayAttributeForGroupAction()
public void setDisplayAttributesForGroupAction(List li)
li - public boolean[] getSortOrder()
public String[] getSortColumnNames()
getSortOrder()public String[] getColumnsWhichHaveDisplayAttributes()
public DisplayAttribute[] getDisplayAttributesWhichHaveColumns()
public boolean isPersonalized()
public void setPersonalized(boolean b)
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||