|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.dss.gridView.UIFormat
An object to define a Crosstab/Table format, which aggregates ViewStyle or ViewFormat or both and a discriminator. Format is used by our UI panels and toolbar.
| Field Summary | |
static int |
DATABODYThis format will be added to "DATA FORMAT" |
static int |
DATABODY_VIEWFORMATformat is for databody format only |
static int |
DATABODY_VIEWSTYLEformat is for databody viewstyle only |
static int |
DATE_CUSTOMCustom date format |
static int |
DATE_DATETIMEUse defined date and time format |
static int |
DATE_DEFAULTUse default date format |
static int |
DATE_GENERALUse defined date format |
static int |
DATE_NONENo date format |
static int |
DATE_TIMEUse defined time format |
static int |
FT_APP_DEFINEDformat type is application added default format |
static int |
FT_DEFAULTformat type is default format |
static int |
FT_END_USER_DEFINEDformat type is user defined format |
static int |
HEADERThis format will be added to "HEADER FORMAT" |
static int |
HEADER_VIEWSTYLEformat is for header viewstyle only |
static int |
NO_NUMBER_DATENo number or date format. |
static int |
NUMBER_CURRENCYNumber format to currecy |
static int |
NUMBER_CUSTOMCustom number format |
static int |
NUMBER_DEFAULTUse default number format set by applications |
static int |
NUMBER_GENERALUse default number format set by applications |
static int |
NUMBER_NONENo number format |
static int |
NUMBER_PERCENTNumber format to percent |
static java.lang.String |
TYPE |
| Constructor Summary | |
UIFormat()This constructor creates default UI format. | |
UIFormat(java.lang.String name, int mergeableType, int formatType, int group, Discriminator discriminator, ViewStyle viewStyle, ViewFormat viewFormat, java.util.Vector conditions, boolean negativeRed, int numberOrDate, java.lang.String numberFormatString)This constructor creates a UI format. | |
| Method Summary | |
java.util.Vector |
getConditions()Returns the conditions associated with the format |
Discriminator |
getDiscriminator()Returns discriminator of this format |
int |
getFormatType()Returns the type of the object. |
int |
getGroup()Returns the group of format. |
int |
getMergeableType()Returns the mergeable type of the format. |
java.lang.String |
getName()Returns the display name of the format. |
int |
getNumberOrDateCategory()Returns whether selection is number or date and the category of number or date formatting |
java.lang.String |
getNumberOrDateFormatString()Get the customized number format string |
PersistableAttributes |
getPersistableAttributes(PersistableAttributes oldAttrs)Retrieves the attributes of the component, for searching. |
ViewFormat |
getViewFormat()Returns ViewFormat of this format |
ViewStyle |
getViewStyle()Returns view style of this format |
java.lang.String |
getXMLAsString()Return XML string |
boolean |
isNegativeRed()Returns negative numbers are red or not by default |
void |
setConditions(java.util.Vector conditions)Sets the conditions associated with the format |
void |
setDiscriminator(Discriminator discriminator)Sets the discriminator of this format |
void |
setFormatType(int type)Sets the format type of the object. |
void |
setGroup(int group)Sets the group of the format. |
void |
setMergeableType(int type)Sets the mergeable type of the format. |
void |
setName(java.lang.String name)Sets the name of format, i.e. |
void |
setNegativeRed(boolean red)Sets if negative numbers are red or not by default |
void |
setNumberOrDateCategory(int type)Sets whether selection is number or date and the category of number or date formatting |
void |
setNumberOrDateFormatString(java.lang.String patternString)Set the customized number format string |
void |
setPersistableAttributes(PersistableAttributes attrs)Specifies attributes that can be used for searching in the BI Beans Catalog. |
void |
setViewFormat(ViewFormat viewFormat)Sets the ViewFormat of this format |
void |
setViewStyle(ViewStyle viewStyle)Sets the view style of this format |
boolean |
setXMLAsString(java.lang.String xml)Set XML String on UIFormats |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.dss.util.persistence.Persistable |
getPersistableComponents, initialize, setPersistableComponents |
| Field Detail |
public static final int HEADER_VIEWSTYLE
public static final int DATABODY_VIEWSTYLE
public static final int DATABODY_VIEWFORMAT
public static final int FT_DEFAULT
public static final int FT_APP_DEFINED
public static final int FT_END_USER_DEFINED
public static final int NO_NUMBER_DATE
public static final int NUMBER_NONE
public static final int NUMBER_DEFAULT
public static final int NUMBER_GENERAL
public static final int NUMBER_CURRENCY
public static final int NUMBER_PERCENT
public static final int NUMBER_CUSTOM
public static final int DATE_NONE
public static final int DATE_DEFAULT
public static final int DATE_GENERAL
public static final int DATE_TIME
public static final int DATE_DATETIME
public static final int DATE_CUSTOM
public static final int HEADER
public static final int DATABODY
public static final java.lang.String TYPE
| Constructor Detail |
public UIFormat()
public UIFormat(java.lang.String name,
int mergeableType,
int formatType,
int group,
Discriminator discriminator,
ViewStyle viewStyle,
ViewFormat viewFormat,
java.util.Vector conditions,
boolean negativeRed,
int numberOrDate,
java.lang.String numberFormatString)
name - Name of a format, i.e., "MyFormat 1".mergeableType - this type describes whether this format aggregates ViewStyle or ViewFormat mergeables.formatType - describes the format type, if it's a default format, or an application added default format or user defined formatgroup - an integer describes which group this format will be added to Format panel. HEADER is reserved for HeaderFormat group, DATABODY is reserved for DataFormat group. Application can add their own group.discriminator - the Discriminator of the view style rule and view format rule for this format, for example, if this format says first row color it red, then first row is the discriminatorviewStyle - a ViewStyle mergeable of this format, if this format does not include a ViewStyle mergeable, set it nullviewFormat - a ViewFormat mergeableof this format, if this format does not include a ViewFormat mergeable, set it nullconditions - a vector of ConditionElement describes conditions on RulesPanelnegativeRed - a boolean indicates whether to color negative number red or not, true is rednumberOrDate - show number or date panel, and the category on each panel. to calculate the numberOrDate , use (number panel category << 4 ) | date panel categorynumberFormatString - customized number format string, i.e. "$0"HEADER_VIEWSTYLE, DATABODY_VIEWSTYLE, DATABODY_VIEWFORMAT, FT_DEFAULT, FT_APP_DEFINED, FT_END_USER_DEFINED, HEADER, DATABODY| Method Detail |
public void setName(java.lang.String name)
public java.lang.String getName()
public void setMergeableType(int type)
HEADER_VIEWSTYLE, DATABODY_VIEWSTYLE, DATABODY_VIEWFORMATpublic int getMergeableType()
HEADER_VIEWSTYLE, DATABODY_VIEWSTYLE, DATABODY_VIEWFORMATpublic void setFormatType(int type)
FT_DEFAULT, FT_APP_DEFINED, FT_END_USER_DEFINEDpublic int getFormatType()
FT_DEFAULT, FT_APP_DEFINED, FT_END_USER_DEFINEDpublic void setGroup(int group)
HEADER, DATABODYpublic int getGroup()
HEADER, DATABODYpublic void setNegativeRed(boolean red)
public boolean isNegativeRed()
public void setNumberOrDateCategory(int type)
public int getNumberOrDateCategory()
public void setNumberOrDateFormatString(java.lang.String patternString)
public java.lang.String getNumberOrDateFormatString()
public void setViewStyle(ViewStyle viewStyle)
public ViewStyle getViewStyle()
public void setViewFormat(ViewFormat viewFormat)
public ViewFormat getViewFormat()
public void setDiscriminator(Discriminator discriminator)
public Discriminator getDiscriminator()
public void setConditions(java.util.Vector conditions)
public java.util.Vector getConditions()
public PersistableAttributes getPersistableAttributes(PersistableAttributes oldAttrs)
PersistablegetPersistableAttributes in interface Persistableoracle.dss.util.persistence.Persistableattrs - The searchable attributes that the application has defined for this component.public void setPersistableAttributes(PersistableAttributes attrs)
PersistablesetPersistableAttributes in interface Persistableoracle.dss.util.persistence.Persistableattrs - PersistableAttributes that specify search attributes for the component.
public java.lang.String getXMLAsString()
throws BIPersistenceException
getXMLAsString in interface StringXMLizableoracle.dss.util.persistence.StringXMLizableBIPersistenceException - If a problem occurs in getting the XML.
public boolean setXMLAsString(java.lang.String xml)
throws BIPersistenceException
setXMLAsString in interface StringXMLizableoracle.dss.util.persistence.StringXMLizablename - The XML representation of the component.true the XML was successfully set, false if not.BIPersistenceException - If a problem occurs in setting the XML.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||