|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.war.report.ColumnValue
public class ColumnValue
Field Summary | |
---|---|
static java.lang.String |
FONT_STYLE_ITALIC
|
static java.lang.String |
FONT_WEIGHT_BOLD
|
static java.lang.String |
LINK_TARGET_BLANK
|
static java.lang.String |
LINK_TARGET_DEFAULT
|
static java.lang.String |
LINK_TARGET_NONE
|
static java.lang.String |
LINK_TARGET_TOP
|
static java.lang.String |
TEXT_DECORATION_BLINK
|
static java.lang.String |
TEXT_DECORATION_OVERLINE
|
static java.lang.String |
TEXT_DECORATION_UNDERLINE
|
Constructor Summary | |
---|---|
ColumnValue()
Constructor |
|
ColumnValue(ColumnValue other)
Copy Constructor |
|
ColumnValue(long value)
Constructor |
|
ColumnValue(java.lang.String value)
Constructor |
|
ColumnValue(URIArg url)
Constructor |
Method Summary | |
---|---|
void |
clear()
Clears all state |
java.lang.String |
getBackgroundColor()
Gets the text background color |
java.lang.String |
getCssClass()
Gets the CSS class for this ColumnValue |
java.lang.String |
getFontStyle()
Gets the text font style |
java.lang.String |
getFontWeight()
Gets the text font weight |
java.lang.String |
getForegroundColor()
Gets the text foreground color |
java.lang.String |
getImageURL()
Gets the imageURL URL |
java.lang.String |
getLinkTarget()
Gets the link target |
java.lang.String |
getLinkURL()
Gets the link URL |
java.lang.String |
getSortKey()
Gets the value that should be used for sorting. |
java.lang.String |
getStyleString()
Gets the "style" for this custom value. Note: the prefixing style= and quotes are not included. |
java.lang.String |
getTextDecoration()
Gets the text decoration |
java.lang.String |
getValue()
Gets the current value |
boolean |
hasBackgroundColor()
Returns true if the background color attribute has been defined |
boolean |
hasCssClass()
Returns true if this column has a specific define CSS class, false otherwise |
boolean |
hasFontStyle()
Returns true if the text font style attribute has been defined |
boolean |
hasFontWeight()
Returns true if the text font weight attribute has been defined |
boolean |
hasForegroundColor()
Returns true if the foreground color attribute has been defined |
boolean |
hasImageURL()
Returns true if the image URL attribute has been defined |
boolean |
hasLinkTarget()
Returns true if the link target attribute has been defined |
boolean |
hasLinkURL()
Returns true if the link URL attribute has been defined |
boolean |
hasSortKey()
Returns true if a sort key has been set for this column value |
boolean |
hasStyle()
Returns true if this ColumnValue contains style information |
boolean |
hasTextDecoration()
Returns true if the text decoration attribute has been defined |
ColumnValue |
setBackgroundColor(java.lang.String color)
Sets the text background color |
ColumnValue |
setCssClass(java.lang.String cssClass)
Sets the CSS class for this ColumnValue |
ColumnValue |
setFontStyle(java.lang.String fs)
Sets the text font style ("font-style:") |
ColumnValue |
setFontStyleItalic()
Sets the text font style to "italic" |
ColumnValue |
setFontWeight(java.lang.String fw)
Sets the text font weight ("font-weight:") |
ColumnValue |
setFontWeightBold()
Sets the text font weight to "bold" |
ColumnValue |
setForegroundColor(ColorTools.RGB rgb)
Sets the text foregound color |
ColumnValue |
setForegroundColor(java.lang.String color)
Sets the text foregound color |
ColumnValue |
setImageURL(java.lang.String url)
Sets the image URL |
ColumnValue |
setImageURL(java.lang.String url,
PixelDimension size)
Sets the image URL |
ColumnValue |
setImageURL(URIArg url)
Sets the image URL |
ColumnValue |
setLinkURL(java.lang.String url)
Sets the link URL |
ColumnValue |
setLinkURL(java.lang.String url,
java.lang.String target)
Sets the link URL |
ColumnValue |
setLinkURL(URIArg url)
Sets the link URL |
ColumnValue |
setLinkURL(URIArg url,
java.lang.String target)
Sets the link URL |
ColumnValue |
setSortKey(int val)
Sets the value that should be used for sorting. |
ColumnValue |
setSortKey(long val)
Sets the value that should be used for sorting. |
ColumnValue |
setSortKey(java.lang.String val)
Sets the value that should be used for sorting. |
ColumnValue |
setTextDecoration(java.lang.String decor)
Sets the text decoration style ("text-decoration:") |
ColumnValue |
setTextDecorationBlink()
Sets the text decoration style to "blink" |
ColumnValue |
setTextDecorationOverline()
Sets the text decoration style to "overline" |
ColumnValue |
setTextDecorationUnderline()
Sets the text decoration style to "underline" |
ColumnValue |
setValue(java.lang.String val)
Sets the current value |
java.lang.String |
toString()
Gets the current value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LINK_TARGET_NONE
public static final java.lang.String LINK_TARGET_BLANK
public static final java.lang.String LINK_TARGET_TOP
public static final java.lang.String LINK_TARGET_DEFAULT
public static final java.lang.String TEXT_DECORATION_UNDERLINE
public static final java.lang.String TEXT_DECORATION_OVERLINE
public static final java.lang.String TEXT_DECORATION_BLINK
public static final java.lang.String FONT_WEIGHT_BOLD
public static final java.lang.String FONT_STYLE_ITALIC
Constructor Detail |
---|
public ColumnValue()
public ColumnValue(ColumnValue other)
other
- The other report ColumnValuepublic ColumnValue(java.lang.String value)
value
- The report column String valuepublic ColumnValue(URIArg url)
url
- The report column String valuepublic ColumnValue(long value)
value
- The report column String valueMethod Detail |
---|
public boolean hasCssClass()
public ColumnValue setCssClass(java.lang.String cssClass)
cssClass
- The css classpublic java.lang.String getCssClass()
public void clear()
public ColumnValue setValue(java.lang.String val)
val
- The column String value
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public ColumnValue setSortKey(java.lang.String val)
val
- The column String value
public ColumnValue setSortKey(long val)
val
- The column String value
public ColumnValue setSortKey(int val)
val
- The column String value
public boolean hasSortKey()
public java.lang.String getSortKey()
public boolean hasStyle()
public java.lang.String getStyleString()
style=
and quotes are not included.
public ColumnValue setForegroundColor(ColorTools.RGB rgb)
rgb
- The ColorTools.RGB value of the text foreground color
public ColumnValue setForegroundColor(java.lang.String color)
color
- The String representation of the text foreground color
public boolean hasForegroundColor()
public java.lang.String getForegroundColor()
public ColumnValue setBackgroundColor(java.lang.String color)
color
- The String representation of the text background color
public boolean hasBackgroundColor()
public java.lang.String getBackgroundColor()
public ColumnValue setTextDecoration(java.lang.String decor)
decor
- text decoraton style (ie. "underline", "overline", "line-through", "blink")
public ColumnValue setTextDecorationUnderline()
public ColumnValue setTextDecorationOverline()
public ColumnValue setTextDecorationBlink()
public boolean hasTextDecoration()
public java.lang.String getTextDecoration()
public ColumnValue setFontWeight(java.lang.String fw)
fw
- The text font weight (ie. "bold", "normal", "100".."900")
public ColumnValue setFontWeightBold()
public boolean hasFontWeight()
public java.lang.String getFontWeight()
public ColumnValue setFontStyle(java.lang.String fs)
fs
- The text font style (ie. "normal", "italic", "oblique")
public ColumnValue setFontStyleItalic()
public boolean hasFontStyle()
public java.lang.String getFontStyle()
public ColumnValue setImageURL(java.lang.String url)
url
- The image URL
public ColumnValue setImageURL(URIArg url)
url
- The image URL
public ColumnValue setImageURL(java.lang.String url, PixelDimension size)
url
- The image URLsize
- The image width/height
public boolean hasImageURL()
public java.lang.String getImageURL()
public ColumnValue setLinkURL(java.lang.String url)
url
- The link URL
public ColumnValue setLinkURL(URIArg url)
url
- The link URL
public ColumnValue setLinkURL(java.lang.String url, java.lang.String target)
url
- The link URLtarget
- The link target ("_blank", "_top")
public ColumnValue setLinkURL(URIArg url, java.lang.String target)
url
- The link URLtarget
- The link target ("_blank", "_top", "-self")
public boolean hasLinkURL()
public java.lang.String getLinkURL()
public boolean hasLinkTarget()
public java.lang.String getLinkTarget()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |