@Concealed public class CommonBaseTitle extends java.lang.Object implements ViewComponent, BaseTitleAttributes
Modifier and Type | Field and Description |
---|---|
protected BaseTitleXML |
_baseTitleXML |
protected java.util.BitSet |
_styleOverrideFlags |
protected java.util.BitSet |
_userOverrideFlags |
protected CommonDataview |
dataView |
protected java.awt.Color |
m_background |
protected oracle.dss.dataView.CommonBaseTitle.TitleState |
m_baseState |
protected oracle.dss.dataView.CommonBaseTitle.TitleState |
m_checkpointState |
protected static java.lang.String |
m_errorMsg |
protected static java.lang.String |
m_errorSetFont |
protected java.awt.Font |
m_font |
protected java.awt.Color |
m_foreground |
protected int |
m_hAlign |
protected static java.lang.String |
m_method_setFont |
protected static java.lang.String |
m_method_setText |
protected java.lang.String |
m_text |
protected boolean |
m_underline |
protected boolean |
m_visible |
ATTR_BACKGROUND, ATTR_FONTBOLD, ATTR_FONTITALIC, ATTR_FONTNAME, ATTR_FONTSIZE, ATTR_FOREGROUND, ATTR_HORIZONTALALIGNMENT, ATTR_STYLE_MAXID, ATTR_UNDERLINE
Constructor and Description |
---|
CommonBaseTitle(java.lang.String t,
CommonDataview v,
int id) |
Modifier and Type | Method and Description |
---|---|
void |
createPropertyOverrideFlags() |
void |
establishBaseState() |
void |
establishCheckpointState() |
java.awt.Color |
getBackground()
Retrieves the background color for the title.
|
java.beans.BeanInfo |
getBeanInfo()
Return a BeanInfo structure representing public
properties this component wants to expose in an IDE.
|
java.lang.String |
getComponentName()
Retrieves the name of the title.
|
java.awt.Font |
getFont()
Retrieves the font for the text.
|
java.lang.String |
getFontName()
get font name
|
int |
getFontSize()
get font size
|
java.awt.Color |
getForeground()
Retrieves the text color for the title.
|
int |
getHorizontalAlignment()
Retrieves a horizontal alignment attribute.
|
int |
getID()
Retrieves the ID for the title component.
|
oracle.dss.util.xml.ObjectNode |
getStateAsObjectNode(java.lang.String nodeName,
boolean isCheckpoint) |
oracle.dss.util.xml.ObjectNode |
getStyleXML(boolean allProperties) |
java.lang.String |
getText()
Returns the parsed text for a string that includes variables.
|
java.lang.String |
getUnParseText()
Retrieves the unparsed text for the title.
|
oracle.dss.util.xml.ObjectNode |
getXML(boolean allProperties) |
protected void |
init()
ThinBean State Management Support
|
protected void |
initState() |
boolean |
isBackgroundUsed() |
boolean |
isFontBold()
is font bold?
|
boolean |
isFontItalic()
is font italic?
|
boolean |
isForegroundUsed() |
boolean |
isStyleOverrideFlag(int attrID) |
boolean |
isUnderline()
Indicates whether the text is underlined with one line.
|
boolean |
isUserOverrideFlag(int attrID) |
boolean |
isVisible()
Indicates whether the title is visible.
|
void |
resetStyle() |
void |
resetToDefault(int reset) |
void |
setBackground(java.awt.Color bg)
Specifies the background color for the title.
|
void |
setFont(java.awt.Font f)
Specifies font for the text.
|
void |
setFontBold(boolean bold)
specifies wheather the font is bold.
|
void |
setFontItalic(boolean italic)
specifies wheather the font is italic.
|
void |
setFontName(java.lang.String name)
specifies the font name.
|
void |
setFontSize(int size)
specifies the font size.
|
void |
setForeground(java.awt.Color fg)
Specifies the text color for the title.
|
void |
setHorizontalAlignment(int horizontalAlignment)
Specifies a horizontal alignment attribute.
|
void |
setStateAsObjectNode(oracle.dss.util.xml.ObjectNode node,
boolean isCheckpoint) |
void |
setStyleProperty(int attrID,
java.lang.String value) |
void |
setStyleXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset) |
void |
setText(java.lang.String t)
Specifies the parsed text for a string that includes variables.
|
void |
setUnderline(boolean underline)
Specifies whether the text is underlined with one line.
|
void |
setVisible(boolean b)
Specifies whether the title is visible.
|
void |
setXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset) |
void |
setXML(oracle.dss.util.xml.ObjectNode node,
java.lang.String version,
int reset,
java.util.HashMap map) |
java.lang.String |
toString() |
@Concealed protected oracle.dss.dataView.CommonBaseTitle.TitleState m_baseState
@Concealed protected oracle.dss.dataView.CommonBaseTitle.TitleState m_checkpointState
@Concealed protected java.util.BitSet _userOverrideFlags
@Concealed protected java.util.BitSet _styleOverrideFlags
@Concealed protected CommonDataview dataView
@Concealed protected java.lang.String m_text
@Concealed protected boolean m_visible
@Concealed protected java.awt.Font m_font
@Concealed protected boolean m_underline
@Concealed protected int m_hAlign
@Concealed protected java.awt.Color m_background
@Concealed protected java.awt.Color m_foreground
@Concealed protected static final java.lang.String m_errorSetFont
@Concealed protected static final java.lang.String m_method_setText
@Concealed protected static final java.lang.String m_method_setFont
@Concealed protected static final java.lang.String m_errorMsg
protected BaseTitleXML _baseTitleXML
@Concealed public CommonBaseTitle(java.lang.String t, CommonDataview v, int id)
t
- The text for the title.v
- The data view that the title belongs to.public void setVisible(boolean b)
setVisible
in interface Titles
b
- true
to make the title visible, false
to make the title invisible.public int getID()
getID
in interface ViewComponent
public java.lang.String getComponentName()
getComponentName
in interface BaseTitleAttributes
getComponentName
in interface ViewComponent
public boolean isVisible()
public void setText(java.lang.String t)
public java.lang.String getText()
public java.lang.String getUnParseText()
getUnParseText
in interface Titles
TokenSubstitution
public void setFont(java.awt.Font f)
setFont
in interface FontAttribute
font
- The font for the text.public java.awt.Font getFont()
getFont
in interface FontAttribute
public int getFontSize()
public void setFontSize(int size)
size
- of the fontpublic java.lang.String getFontName()
public void setFontName(java.lang.String name)
name
- of the fontpublic boolean isFontBold()
public void setFontBold(boolean bold)
bold
- true
to set the font to bold
false
to prevent the font to be bold.public boolean isFontItalic()
public void setFontItalic(boolean italic)
italic
- true
to set the font to italic
false
to prevent the font to be italic.@Concealed public void setStyleProperty(int attrID, java.lang.String value)
setStyleProperty
in interface BaseTitleAttributes
public void setUnderline(boolean underline)
setUnderline
in interface DataviewTitles
underline
- true
to underline the text with one line, false
to prevent the text from being underlined with one line.public boolean isUnderline()
isUnderline
in interface DataviewTitles
true
if the text is underlined with one line, false
if the text is not underlined with one line.public void setHorizontalAlignment(int horizontalAlignment)
setHorizontalAlignment
in interface HorizontalAlignment
horizontalAlignment
- A constant that represents a horizontal
alignment attribute.
Valid constants are SwingConstants.LEFT
,
SwingConstants.CENTER
, and
SwingConstants.RIGHT
public int getHorizontalAlignment()
getHorizontalAlignment
in interface HorizontalAlignment
SwingConstants.LEFT
,
SwingConstants.CENTER
, and
SwingConstants.RIGHT
public java.awt.Color getBackground()
getBackground
in interface DataviewTitles
public void setBackground(java.awt.Color bg)
setBackground
in interface DataviewTitles
bg
- The background color for the title.public java.awt.Color getForeground()
getForeground
in interface DataviewTitles
public void setForeground(java.awt.Color fg)
setForeground
in interface DataviewTitles
fg
- The text color for the title.@Concealed public java.beans.BeanInfo getBeanInfo()
ViewComponent
getBeanInfo
in interface ViewComponent
array of BeanInfo structures
if there are any, null
if there are none.@Concealed public java.lang.String toString()
toString
in class java.lang.Object
@Concealed public void setXML(oracle.dss.util.xml.ObjectNode node, java.lang.String version, int reset)
setXML
in interface BaseTitleAttributes
@Concealed public void setXML(oracle.dss.util.xml.ObjectNode node, java.lang.String version, int reset, java.util.HashMap map)
setXML
in interface BaseTitleAttributes
@Concealed public oracle.dss.util.xml.ObjectNode getXML(boolean allProperties)
getXML
in interface BaseTitleAttributes
@Concealed public void resetToDefault(int reset)
@Concealed public boolean isForegroundUsed()
isForegroundUsed
in interface BaseTitleAttributes
@Concealed public boolean isBackgroundUsed()
isBackgroundUsed
in interface BaseTitleAttributes
@Concealed public void setStyleXML(oracle.dss.util.xml.ObjectNode node, java.lang.String version, int reset)
setStyleXML
in interface BaseTitleAttributes
@Concealed public oracle.dss.util.xml.ObjectNode getStyleXML(boolean allProperties)
getStyleXML
in interface BaseTitleAttributes
@Concealed public void createPropertyOverrideFlags()
@Concealed public boolean isUserOverrideFlag(int attrID)
isUserOverrideFlag
in interface BaseTitleAttributes
@Concealed public boolean isStyleOverrideFlag(int attrID)
isStyleOverrideFlag
in interface BaseTitleAttributes
@Concealed public void resetStyle()
protected void init()
protected void initState()
public void establishBaseState()
public void establishCheckpointState()
public void setStateAsObjectNode(oracle.dss.util.xml.ObjectNode node, boolean isCheckpoint)
public oracle.dss.util.xml.ObjectNode getStateAsObjectNode(java.lang.String nodeName, boolean isCheckpoint)