public class Hilite extends RefDataClass
HiliteEditor
either directly or via the ListGrid.canEditHilites
behavior. See Hiliting
for an overview.
Hiliting
id
factoryCreated, factoryProperties
Constructor and Description |
---|
Hilite() |
Hilite(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBackgroundColor()
When edited via a
HiliteEditor , the value for the background color of this
hilite. |
java.lang.Boolean |
getCanEdit()
Can highlight be edited from header context menu? Setting attribute to
false prevents editing. |
Criteria |
getCriteria()
Criteria defining what records this hilite should apply to.
|
java.lang.String |
getCssText()
CSS text to be applied to cells where this hilite is applied, for example, "background-color:#FF0000"
|
java.lang.Boolean |
getDisabled()
Whether this hilite is currently disabled.
|
java.lang.String |
getFieldName()
Name of the field, or array of fieldNames, this hilite should be applied to.
|
java.lang.String[] |
getFieldNameAsStringArray()
Name of the field, or array of fieldNames, this hilite should be applied to.
|
java.lang.String |
getHtmlAfter()
HTML to append to the end of cell values where this hilite is applied.
|
java.lang.String |
getHtmlBefore()
HTML to pre-pend to cell values where this hilite is applied.
|
java.lang.String |
getHtmlValue()
Deprecated.
htmlValue is deprecated in favor of replacementValue . Note that unlike replacementValue , this property does not respect disabled , and will be applied even if disabled is set to
true |
java.lang.String |
getIcon()
URL of an icon to show when this hilite is applied to a cell.
|
java.lang.String |
getId()
Unique ID for this hilite definition.
|
static Hilite |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.String |
getReplacementValue()
HTML which replaces the cell's textual value where this hilite is applied.
|
java.lang.String |
getTextColor()
When edited via a
HiliteEditor , the value for the foreground color of this
hilite. |
java.lang.String |
getTitle()
User-visible title for this hilite.
|
Hilite |
setBackgroundColor(java.lang.String backgroundColor)
When edited via a
HiliteEditor , the value for the background color of this
hilite. |
Hilite |
setCanEdit(java.lang.Boolean canEdit)
Can highlight be edited from header context menu? Setting attribute to
false prevents editing. |
void |
setCriteria(Criteria criteria)
Criteria defining what records this hilite should apply to.
|
Hilite |
setCssText(java.lang.String cssText)
CSS text to be applied to cells where this hilite is applied, for example, "background-color:#FF0000"
|
Hilite |
setDisabled(java.lang.Boolean disabled)
Whether this hilite is currently disabled.
|
Hilite |
setFieldName(java.lang.String... fieldName)
Name of the field, or array of fieldNames, this hilite should be applied to.
|
Hilite |
setFieldName(java.lang.String fieldName)
Name of the field, or array of fieldNames, this hilite should be applied to.
|
void |
setFieldNames(java.lang.String... fieldNames)
Name of the fields that hilite should be applied to.
|
Hilite |
setHtmlAfter(java.lang.String htmlAfter)
HTML to append to the end of cell values where this hilite is applied.
|
Hilite |
setHtmlBefore(java.lang.String htmlBefore)
HTML to pre-pend to cell values where this hilite is applied.
|
Hilite |
setHtmlValue(java.lang.String htmlValue)
Deprecated.
htmlValue is deprecated in favor of replacementValue . Note that unlike replacementValue , this property does not respect disabled , and will be applied even if disabled is set to
true |
Hilite |
setIcon(java.lang.String icon)
URL of an icon to show when this hilite is applied to a cell.
|
Hilite |
setId(java.lang.String id)
Unique ID for this hilite definition.
|
Hilite |
setReplacementValue(java.lang.String replacementValue)
HTML which replaces the cell's textual value where this hilite is applied.
|
Hilite |
setTextColor(java.lang.String textColor)
When edited via a
HiliteEditor , the value for the foreground color of this
hilite. |
Hilite |
setTitle(java.lang.String title)
User-visible title for this hilite.
|
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
public Hilite()
public Hilite(com.google.gwt.core.client.JavaScriptObject jsObj)
public static Hilite getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public Hilite setBackgroundColor(java.lang.String backgroundColor)
HiliteEditor
, the value for the background color of this
hilite. If this is omitted, it will be automatically derived from the backgroundColor attribute of cssText
. When a hilite is saved in a HiliteEditor, both attributes are set
automatically.public java.lang.String getBackgroundColor()
HiliteEditor
, the value for the background color of this
hilite. If this is omitted, it will be automatically derived from the backgroundColor attribute of cssText
. When a hilite is saved in a HiliteEditor, both attributes are set
automatically.Hiliting
public Hilite setCanEdit(java.lang.Boolean canEdit)
false
prevents editing. A
null
or true
value allows editing.public java.lang.Boolean getCanEdit()
false
prevents editing. A
null
or true
value allows editing.Hiliting
public Hilite setCssText(java.lang.String cssText)
public java.lang.String getCssText()
public Hilite setDisabled(java.lang.Boolean disabled)
Hilites can be programmatically enabled and disabled via DataBoundComponent.enableHilite()
.
public java.lang.Boolean getDisabled()
Hilites can be programmatically enabled and disabled via DataBoundComponent.enableHilite()
.
Hiliting
public Hilite setFieldName(java.lang.String fieldName)
If unset, hilite is applied to every field of the record.
public java.lang.String getFieldName()
If unset, hilite is applied to every field of the record.
public Hilite setFieldName(java.lang.String... fieldName)
If unset, hilite is applied to every field of the record.
public java.lang.String[] getFieldNameAsStringArray()
If unset, hilite is applied to every field of the record.
public Hilite setHtmlAfter(java.lang.String htmlAfter)
htmlAfter
- New htmlAfter value. Default value is nullHilite
instance, for chaining setter callsHTMLString
,
Hiliting
public java.lang.String getHtmlAfter()
HTMLString
,
Hiliting
public Hilite setHtmlBefore(java.lang.String htmlBefore)
htmlBefore
- New htmlBefore value. Default value is nullHilite
instance, for chaining setter callsHTMLString
,
Hiliting
public java.lang.String getHtmlBefore()
HTMLString
,
Hiliting
public Hilite setHtmlValue(java.lang.String htmlValue)
htmlValue
is deprecated in favor of replacementValue
. Note that unlike replacementValue
, this property does not respect disabled
, and will be applied even if disabled
is set to
true
This can be used to take ranges of numeric values and simplify them to "Low", "Medium", "High" or similar textual values, translate very small or very large values to "Outlier" or "Negligible", and similar use cases.
public java.lang.String getHtmlValue()
htmlValue
is deprecated in favor of replacementValue
. Note that unlike replacementValue
, this property does not respect disabled
, and will be applied even if disabled
is set to
true
This can be used to take ranges of numeric values and simplify them to "Low", "Medium", "High" or similar textual values, translate very small or very large values to "Outlier" or "Negligible", and similar use cases.
Hiliting
public Hilite setIcon(java.lang.String icon)
DataBoundComponent.hiliteIconPosition
or ListGridField.hiliteIconPosition
.public java.lang.String getIcon()
DataBoundComponent.hiliteIconPosition
or ListGridField.hiliteIconPosition
.public Hilite setId(java.lang.String id)
For hilites that include criteria
this is not required.
If you are explicitly marking records for hiliting, set DataBoundComponent.hiliteProperty
on the record to
this ID.
Note that the ID must be a valid JavaScript identifier, and in particular, setting the ID to a number is not supported.
id
- New id value. Default value is nullHilite
instance, for chaining setter callsIdentifier
,
Hiliting
public java.lang.String getId()
For hilites that include criteria
this is not required.
If you are explicitly marking records for hiliting, set DataBoundComponent.hiliteProperty
on the record to
this ID.
Note that the ID must be a valid JavaScript identifier, and in particular, setting the ID to a number is not supported.
Identifier
,
Hiliting
public Hilite setReplacementValue(java.lang.String replacementValue)
Note that sorting, filtering, etc behavior will still operate on the underlying value. For example, if there is a date field with the FilterEditor enabled, the default search interface will still offer date-range based filtering even if hilites have caused values to be displayed as text such as "current" or "past due".
replacementValue
- New replacementValue value. Default value is nullHilite
instance, for chaining setter callsHTMLString
,
Hiliting
public java.lang.String getReplacementValue()
Note that sorting, filtering, etc behavior will still operate on the underlying value. For example, if there is a date field with the FilterEditor enabled, the default search interface will still offer date-range based filtering even if hilites have caused values to be displayed as text such as "current" or "past due".
HTMLString
,
Hiliting
public Hilite setTextColor(java.lang.String textColor)
HiliteEditor
, the value for the foreground color of this
hilite. If this is omitted, it will be automatically derived from the textColor attribute of cssText
. When a hilite is saved in a HiliteEditor, both attributes are set
automatically.public java.lang.String getTextColor()
HiliteEditor
, the value for the foreground color of this
hilite. If this is omitted, it will be automatically derived from the textColor attribute of cssText
. When a hilite is saved in a HiliteEditor, both attributes are set
automatically.Hiliting
public Hilite setTitle(java.lang.String title)
public java.lang.String getTitle()
Hiliting
public void setFieldNames(java.lang.String... fieldNames)
If unset, hilite is applied to every field of the record.
fieldNames
- fieldNames Default value is nullpublic void setCriteria(Criteria criteria)
criteria
- criteria Default value is nullpublic Criteria getCriteria()