|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.arsdigita.acs.html.DimensionalBar
Displays a table of links that can be used to limit database query results.
| Constructor Summary | |
DimensionalBar()
|
|
| Method Summary | |
void |
addValue(java.lang.String id,
java.lang.String value,
java.lang.String text)
Special case of addValue for sqlClauses with no associated SQL, i.e. |
void |
addValue(java.lang.String id,
java.lang.String value,
java.lang.String text,
com.arsdigita.db.SqlFragment sqlClause)
Specifies an additional choice for one of the dimensions specified by addVariable. |
void |
addValue(java.lang.String id,
java.lang.String value,
java.lang.String text,
java.lang.String sqlClause)
Special case of addValue for sqlClauses with no bind variables. |
void |
addVariable(java.lang.String id,
java.lang.String title)
Specifies a dimension along which to choose. |
void |
addVariable(java.lang.String id,
java.lang.String title,
java.lang.String defaultValue)
Specifies a dimension along which to choose. |
void |
clear()
Clears out the values added to this dimensional bar |
com.arsdigita.db.SqlFragment |
getDimensionalSql()
Returns SQL for inclusion in the where clause of a query. |
void |
setUrl(java.lang.String url)
Sets the target for the links that are generated. |
void |
setValues(ACSForm selectedValues)
Specifies the values to be highlighted. |
java.lang.String |
toString()
Returns an HTML fragment that displays all the choices that have been configured with the addVariable and addValue methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DimensionalBar()
throws ACSException
| Method Detail |
public void addVariable(java.lang.String id,
java.lang.String title)
id - the name of the URL variabletitle - the title of this variable, for displaying as a column header
along the top of the DimensionalBar
public void addVariable(java.lang.String id,
java.lang.String title,
java.lang.String defaultValue)
id - the name of the URL variabletitle - the title of this variable, for displaying as a column header
along the top of the DimensionalBardefaultValue - the value to display as selected, if a particular
value has not already been chosen by the user
public void addValue(java.lang.String id,
java.lang.String value,
java.lang.String text)
throws ACSException
public void addValue(java.lang.String id,
java.lang.String value,
java.lang.String text,
java.lang.String sqlClause)
throws ACSException
public void addValue(java.lang.String id,
java.lang.String value,
java.lang.String text,
com.arsdigita.db.SqlFragment sqlClause)
throws ACSException
id - the name of the URL variable which may contain this valuevalue - the value to assign to the URL variable when the user chooses this valuetext - the text to display for the valuesqlClause - the restriction to apply to a SQL query involving this variable.
This is a SQL expression that can follow "where" in a query. The
word "where" should not be included. The empty string is an allowable
value if no restriction should be added for this value (for example, the value
represents "All")ACSException - if variable matching id does not exist.public java.lang.String toString()
toString in class java.lang.Objectpublic com.arsdigita.db.SqlFragment getDimensionalSql()
public void setUrl(java.lang.String url)
public void setValues(ACSForm selectedValues)
public void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||