|
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 | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--oracle.dss.gridView.gui.FontPanel
Panel for changing font attributes. Sets font, alignment, and color.
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
static java.lang.String |
PROPERTY_CANCELLED true if user clicks Cancel instead of OK. |
static java.lang.String |
PROPERTY_FONTPANEL_WRAP_WORDS Property: Wrap Words. |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
FontPanel(ViewStyle style) Default constructor. |
Method Summary | |
void |
apply() Applies font properties to the 'ViewStyle' |
void |
cleanUp() Clean up memory space |
java.awt.Font |
getComponentFont() Gets the font that is selected in this panel. |
java.awt.Color |
getComponentForeground() Gets the foreground color that is set in this panel. |
java.lang.String |
getFontName() Gets the font name. |
oracle.bali.ewt.chooser.font.FontPane |
getFontPane() Gets the FontPane for this dialog. |
int |
getFontSize() Gets the font size. |
java.lang.String |
getHelpContextID() Retrieves the Help context ID for this panel. |
int |
getHorizontalAlignment() Gets the horizontal alignment that is selected in this panel. |
int |
getVerticalAlignment() Gets the vertical alignment that is selected in this panel. |
boolean |
getWrapWordsState() Gets the state of the 'Wrap words in cell' checkbox. |
boolean |
isBoldStyle() Find if the font has bold property. |
boolean |
isHelpEnabled() Indicates whether a Help button in a dialog box that is displayed by this panel, is displayed. |
boolean |
isItalicStyle() Find if the font has italic property. |
boolean |
isStrikeThroughStyle() Find if the font has StrikeThrough property. |
boolean |
isUnderlineStyle() Find if the font has underline property. |
void |
setAlignmentButtonMask(int alignment) Specifies which alignment button appear in the panel. |
void |
setColorComponentMask(int buttons) Specifies which color buttons appear in the panel. |
void |
setComponentFont(java.awt.Font f) Sets the Font in this panel. |
void |
setComponentForeground(java.awt.Color c) Sets the foreground color in this panel. |
void |
setHelpContextID(java.lang.String strHelpContextID) Sets the Help context ID for this panel. |
void |
setHelpEnabled(boolean bValue) Specifies whether a Help button in a dialog box that is displayed by this panel, is displayed. |
void |
setHorizontalAlignment(int alignment) Sets the horizontal alignment. |
void |
setLocale(java.util.Locale loc) set locale of the font |
void |
setStyleButtonMask(int style) Specifies which style buttons appear in the panel. |
void |
setVerticalAlignment(int alignment) Sets the vertical alignment. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.beans.PropertyChangeListener |
propertyChange |
Field Detail |
public static final java.lang.String PROPERTY_FONTPANEL_WRAP_WORDS
public static final java.lang.String PROPERTY_CANCELLED
true
if user clicks Cancel instead of OK. Check this value before you call "get" methods to set the properties of the object from which this dialog is invoked.Constructor Detail |
public FontPanel(ViewStyle style)
Method Detail |
public void cleanUp()
public java.lang.String getHelpContextID()
getHelpContextID
in interface HelpContext
public void setHelpContextID(java.lang.String strHelpContextID)
setHelpContextID
in interface HelpContext
oracle.dss.util.help.HelpContext
strHelpContextID
- a String
value that represents the Help context ID.public void setHelpEnabled(boolean bValue)
For example, suppose that this panel had a font button and that font button displayed a font dialog box. If that font dialog box had a Help button, then this method would specify whether that Help button is displayed.
bValue
- true
to display the Help button, false
to hide it.public boolean isHelpEnabled()
For example, suppose that this panel had a font button and that font button displayed a font dialog box. If that font dialog box had a Help button, then this method would tell you whether that Help button is displayed.
true
if the Help button is hidden, false
if it is displayed.public oracle.bali.ewt.chooser.font.FontPane getFontPane()
FontPane
for this dialog.public void setStyleButtonMask(int style)
style
- A constant that specifies which style buttons to show. The constants are:
BUTTON_STYLE_BOLD
BUTTON_STYLE_ITALIC
BUTTON_STYLE_STRIKETHROUGH
BUTTON_STYLE_UNDERLINE
public void setAlignmentButtonMask(int alignment)
alignment
- A constant that specifies which alignment buttons to show. The constants are:
BUTTON_ALIGNMENT_BOTTOM
BUTTON_ALIGNMENT_CENTER
BUTTON_ALIGNMENT_LEFT
BUTTON_ALIGNMENT_MIDDLE
BUTTON_ALIGNMENT_RIGHT
BUTTON_ALIGNMENT_TOP
public void setColorComponentMask(int buttons)
buttons
- A constant that specifies which color buttons to show. The constants are:
COLOR_COMPONENT_FOREGROUND
public java.awt.Color getComponentForeground()
public void setComponentForeground(java.awt.Color c)
c
- the current foreground color.public java.awt.Font getComponentFont()
public void setComponentFont(java.awt.Font f)
f
- the current font. status newpublic boolean isUnderlineStyle()
public boolean isStrikeThroughStyle()
public boolean isBoldStyle()
public boolean isItalicStyle()
public int getHorizontalAlignment()
public void setHorizontalAlignment(int alignment)
alignment
- a constant that specifies the current alignment. The constants are inherited.public int getVerticalAlignment()
public boolean getWrapWordsState()
public java.lang.String getFontName()
public int getFontSize()
public void setVerticalAlignment(int alignment)
alignment
- a constant that specifies the current vertical alignment.public void apply()
public void setLocale(java.util.Locale loc)
setLocale
in class java.awt.Component
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |