|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.orchestranetworks.ui.UITableFilter
Abstract class for implementing a user interface filter over a table.
Filters are specified in the same parent element as osd:table, for example:
<xs:annotation>
<xs:appinfo>
<osd:table>...</osd:table>
<osd:uiFilter class="com.foo.MyUIFilter1"/>
<label>Label of filter 1</label>
</osd:uiFilter>
<osd:uiFilter class="com.foo.MyUIFilter2">
<label>Default label of filter 2</label>
<label xml:lang="fr">Libellé en français du filtre 2</label>
</osd:uiFilter>
<xs:appinfo>
</xs:annotation>
where com.foo.MyUIFilter1 and com.foo.MyUIFilter2 are
the fully qualified name of classes implementing this interface.
The declaration may also use parameters:
<osd:uiFilter class="com.foo.MyUIFilter3">
<param1>...</param1>
<param2>...</param2>
</osd:uiFilter>
where param1 and param2 are JavaBean properties
of com.foo.MyUIFilter3 class.
For more information, read JavaBeans specification.
setParam1(...) and
setParam2(...)).
| Constructor Summary | |
UITableFilter()
|
|
| Method Summary | |
abstract void |
addForEdit(UITableFilterResponseContext aResponse)
Adds HTML or DHTML for the filter pane, so that it allows the user to set the filter. |
void |
addForPrint(UITableFilterResponseContext aResponse)
Adds HTML content for displaying information about the current filter's settings on a printable page. |
UserMessage |
getLabel()
Returns the label of this filter. |
abstract void |
handleApply(UITableFilterRequestContext aContext)
Handles the request when the "apply filter" button is pushed. |
abstract void |
handleReset()
Handles the request when the "reset" button is pushed. |
abstract void |
handleSelect(UITableFilterRequestContext aContext)
Handles the request when this filter is selected in the list of filters. |
void |
setLabel(Locale aLocale,
String aLabel)
Sets the label of this filter for the locale specified. |
void |
setLabel(String aLabel)
Sets the default label of this filter. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UITableFilter()
| Method Detail |
public abstract void addForEdit(UITableFilterResponseContext aResponse)
When this method is called, the container has already added a <form ...> tag,
and after this method has returned, it will add the closing </form> tag.
Hence the implementation has only to place properly HTML components.
aResponse.add("<input type=\"checkbox\" name=\"item\" style=\"border: 0;\" value=\"P4\" ");
if (selection.contains("P4"))
aResponse.add(" checked");
aResponse.add("> Label of P4<br>");
requestIDonw (in lowercase or uppercase).
public void addForPrint(UITableFilterResponseContext aResponse)
Default implementation redirects to addForEdit(UITableFilterResponseContext).
For production use, it is recommended to implement this method more adequately.
public abstract void handleApply(UITableFilterRequestContext aContext)
The implementation of this method should:
addForEdit(UITableFilterResponseContext));
UITableFilterRequestContext.setTableFilter(AdaptationFilter).
public abstract void handleSelect(UITableFilterRequestContext aContext)
The implementation of this method should take into account the internal state
of this instance for building the appropriate
AdaptationFilter and set it by calling
UITableFilterRequestContext.setTableFilter(AdaptationFilter).
public abstract void handleReset()
The implementation of this method should reset the state of this instance to its initial state.
public UserMessage getLabel()
public void setLabel(Locale aLocale,
String aLabel)
public void setLabel(String aLabel)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.0 [0598]
Copyright Orchestra Networks 2000-2008. All rights reserved.