Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.gridView.gui
Class RulesPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--oracle.dss.gridView.gui.RulesPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, javax.swing.event.ListDataListener, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable
Direct Known Subclasses:
CrosstabRulesPanel, TableRulesPanel

public abstract class RulesPanel
extends javax.swing.JPanel
implements java.awt.event.ActionListener, java.beans.PropertyChangeListener, javax.swing.event.ListDataListener

rules format panel for gridview

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent

 

Field Summary
static int BACKGROUND
          Background format element
static int BORDERS
          Borders format element
static int DATABARS
          Databars format element
static int DATEFORMAT
          Date Format format element
static int FONTALIGNMENT
          Font Alignment format element
static int FONTCOLOR
          Font Color format element
static int FONTNAME
          Font Name format element
static int FONTSIZE
          Font Size format element
static int FONTSTYLE
          Font Style format element
static int HEADER_BORDERS
          Header Borders format element
static int HEADER_FONTALIGNMENT
          Header Font Alignment format element
static int HEADER_FONTCOLOR
          Header Font Color format element
static int HEADER_FONTNAME
          Header FontName format element
static int HEADER_FONTSIZE
          Header Font Size format element
static int HEADER_FONTSTYLE
          Header Font Style format element
static int HEADER_WORDWRAP
          Header Word Wrap format element
 java.lang.String m_header
           
static int NUMBERFORMAT
          Number Format format element
static java.lang.String PROPERTY_BACKGROUND_SELECTED
          Property: Background color included in format Use this constant when listening for changes in the option that specifies whether the background color in viewstyle is used.
static java.lang.String PROPERTY_BORDERS_SELECTED
          Property: Borders included in format Use this constant when listening for changes in the option that specifies whether the borders in viewstyle is used.
static java.lang.String PROPERTY_DATABARS_SELECTED
          Property: Data bar included in format Use this constant when listening for changes in the option that specifies whether the databars in viewstyle is used.
static java.lang.String PROPERTY_DATE_FORMAT_SELECTED
          Property: Number format included in format Use this constant when listening for changes in the option that specifies whether date format is used.
static java.lang.String PROPERTY_FONT_ALIGNMENT_SELECTED
          Property: Font alignment included in format Use this constant when listening for changes in the option that specifies whether the font alignment in viewstyle is used.
static java.lang.String PROPERTY_FONT_BACKGROUND_SELECTED
          Property: Font background included in format Use this constant when listening for changes in the option that specifies whether the font background in viewstyle is used.
static java.lang.String PROPERTY_FONT_COLOR_SELECTED
          Property: Font foreground included in format Use this constant when listening for changes in the option that specifies whether the foreground in viewstyle is used.
static java.lang.String PROPERTY_FONT_NAME_SELECTED
          Property: Font Name included in format Use this constant when listening for changes in the option that specifies whether the font name in viewstyle is used.
static java.lang.String PROPERTY_FONT_SIZE_SELECTED
          Property: Font size included in format Use this constant when listening for changes in the option that specifies whether the font size in viewstyle is used.
static java.lang.String PROPERTY_FONT_STYLE_SELECTED
          Property: Font style included in format Use this constant when listening for changes in the option that specifies whether the foreground in viewstyle is used.
static java.lang.String PROPERTY_NUMBER_FORMAT_SELECTED
          Property: Number format included in format Use this constant when listening for changes in the option that specifies whether number format is used.
static java.lang.String PROPERTY_WORD_WRAP_SELECTED
          Property: word wrap enabled in format Use this constant when listening for changes in the option that specifies whether the word wrap in viewstyle is used.
static int WORDWRAP
          Word Wrap format element

 

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
RulesPanel()
          Construct a rules panel without any parameter
RulesPanel(UIGridView gridView)
          Construct a rules panel
RulesPanel(UIGridView gridView, java.lang.String header)
          Construct a rules panel
RulesPanel(UIGridView gridView, java.lang.String header, boolean isDefault)
          Construct a rules panel

 

Method Summary
 void cleanUp()
          Clean up memory and space
abstract  Discriminator getDiscriminator()
          Return the discriminator created by selecting conditions on this panel.
 boolean[] getFormatElementsUsed()
          Return an array of boolean from the format list
 oracle.bali.ewt.help.HelpProvider getHelpProvider()
          Gets the Help provider for this panel.
 java.util.Locale getLocale()
          Return the current Locale that the gridView uses.
 java.lang.String getMemberLabelType()
          set condition list label type
 java.awt.Dimension getPreferredSize()
          Return preferred size of this panel
 boolean isFormatElementSelected(int i)
          Return the selection status of each element on formatlist
 void setConditions(java.util.Vector data)
           
 void setDataAccess(DataAccess access)
          Reset the data source on this panel
 void setFormatElementsUsed(boolean[] selected)
          Set the array of boolean on the format list
 void setGridView(UIGridView gridView)
          Set a gridview on this panel
 void setGridView(UIGridView gridView, java.lang.String header)
          Set a gridview on this panel
 void setHelpProvider(oracle.bali.ewt.help.HelpProvider helpProvider)
          Sets the Help provider for this panel.
 void setLocale(java.util.Locale loc)
          Specifies the current Locale that the gridView uses.
 void setMemberLabelType(java.lang.String s)
          set condition list label type, default is shortlabel
 void setMemberListAccess(MemberListAccess access)
          Reset the member list access on this panel

 

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, 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, 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.awt.event.ActionListener
actionPerformed

 

Methods inherited from interface java.beans.PropertyChangeListener
propertyChange

 

Methods inherited from interface javax.swing.event.ListDataListener
contentsChanged, intervalAdded, intervalRemoved

 

Field Detail

PROPERTY_BACKGROUND_SELECTED

public static final java.lang.String PROPERTY_BACKGROUND_SELECTED
Property: Background color included in format Use this constant when listening for changes in the option that specifies whether the background color in viewstyle is used.
See Also:
ViewStyle.setBackgroundUsed(boolean)

PROPERTY_DATABARS_SELECTED

public static final java.lang.String PROPERTY_DATABARS_SELECTED
Property: Data bar included in format Use this constant when listening for changes in the option that specifies whether the databars in viewstyle is used.
See Also:
ViewStyle.isGraphicBarVisible()

PROPERTY_BORDERS_SELECTED

public static final java.lang.String PROPERTY_BORDERS_SELECTED
Property: Borders included in format Use this constant when listening for changes in the option that specifies whether the borders in viewstyle is used.

PROPERTY_FONT_NAME_SELECTED

public static final java.lang.String PROPERTY_FONT_NAME_SELECTED
Property: Font Name included in format Use this constant when listening for changes in the option that specifies whether the font name in viewstyle is used.
See Also:
ViewStyle.setFontNameUsed(boolean)

PROPERTY_FONT_STYLE_SELECTED

public static final java.lang.String PROPERTY_FONT_STYLE_SELECTED
Property: Font style included in format Use this constant when listening for changes in the option that specifies whether the foreground in viewstyle is used.
See Also:
ViewStyle.setFontBoldUsed(boolean), ViewStyle.setFontItalicUsed(boolean), ViewStyle.setUnderlineUsed(boolean), ViewStyle.setStrikeThroughUsed(boolean)

PROPERTY_FONT_SIZE_SELECTED

public static final java.lang.String PROPERTY_FONT_SIZE_SELECTED
Property: Font size included in format Use this constant when listening for changes in the option that specifies whether the font size in viewstyle is used.
See Also:
ViewStyle.setFontSizeUsed(boolean)

PROPERTY_FONT_COLOR_SELECTED

public static final java.lang.String PROPERTY_FONT_COLOR_SELECTED
Property: Font foreground included in format Use this constant when listening for changes in the option that specifies whether the foreground in viewstyle is used.
See Also:
ViewStyle.setForegroundUsed(boolean)

PROPERTY_FONT_BACKGROUND_SELECTED

public static final java.lang.String PROPERTY_FONT_BACKGROUND_SELECTED
Property: Font background included in format Use this constant when listening for changes in the option that specifies whether the font background in viewstyle is used.

PROPERTY_FONT_ALIGNMENT_SELECTED

public static final java.lang.String PROPERTY_FONT_ALIGNMENT_SELECTED
Property: Font alignment included in format Use this constant when listening for changes in the option that specifies whether the font alignment in viewstyle is used.

PROPERTY_WORD_WRAP_SELECTED

public static final java.lang.String PROPERTY_WORD_WRAP_SELECTED
Property: word wrap enabled in format Use this constant when listening for changes in the option that specifies whether the word wrap in viewstyle is used.

PROPERTY_NUMBER_FORMAT_SELECTED

public static final java.lang.String PROPERTY_NUMBER_FORMAT_SELECTED
Property: Number format included in format Use this constant when listening for changes in the option that specifies whether number format is used.

PROPERTY_DATE_FORMAT_SELECTED

public static final java.lang.String PROPERTY_DATE_FORMAT_SELECTED
Property: Number format included in format Use this constant when listening for changes in the option that specifies whether date format is used.

BACKGROUND

public static final int BACKGROUND
Background format element

DATABARS

public static final int DATABARS
Databars format element

BORDERS

public static final int BORDERS
Borders format element

FONTNAME

public static final int FONTNAME
Font Name format element

FONTSTYLE

public static final int FONTSTYLE
Font Style format element

FONTSIZE

public static final int FONTSIZE
Font Size format element

FONTCOLOR

public static final int FONTCOLOR
Font Color format element

FONTALIGNMENT

public static final int FONTALIGNMENT
Font Alignment format element

WORDWRAP

public static final int WORDWRAP
Word Wrap format element

NUMBERFORMAT

public static final int NUMBERFORMAT
Number Format format element

DATEFORMAT

public static final int DATEFORMAT
Date Format format element

HEADER_BORDERS

public static final int HEADER_BORDERS
Header Borders format element

HEADER_FONTNAME

public static final int HEADER_FONTNAME
Header FontName format element

HEADER_FONTSTYLE

public static final int HEADER_FONTSTYLE
Header Font Style format element

HEADER_FONTSIZE

public static final int HEADER_FONTSIZE
Header Font Size format element

HEADER_FONTCOLOR

public static final int HEADER_FONTCOLOR
Header Font Color format element

HEADER_FONTALIGNMENT

public static final int HEADER_FONTALIGNMENT
Header Font Alignment format element

HEADER_WORDWRAP

public static final int HEADER_WORDWRAP
Header Word Wrap format element

m_header

public java.lang.String m_header
Constructor Detail

RulesPanel

public RulesPanel()
Construct a rules panel without any parameter

RulesPanel

public RulesPanel(UIGridView gridView)
Construct a rules panel
Parameters:
gridView - reference to a view

RulesPanel

public RulesPanel(UIGridView gridView,
                  java.lang.String header)
Construct a rules panel
Parameters:
gridView - reference to a view
header - header dimension name, used for header formatting

RulesPanel

public RulesPanel(UIGridView gridView,
                  java.lang.String header,
                  boolean isDefault)
Construct a rules panel
Parameters:
gridView - reference to a view
header - header dimension name, used for header formatting
isDefault - it it's a default formatting
Method Detail

setGridView

public void setGridView(UIGridView gridView)
Set a gridview on this panel
Parameters:
gridView - reference to a view

setGridView

public void setGridView(UIGridView gridView,
                        java.lang.String header)
Set a gridview on this panel
Parameters:
gridView - reference to a view
header - header dimension name, used for header formatting

setDataAccess

public void setDataAccess(DataAccess access)
Reset the data source on this panel
Parameters:
access - A new DataAccess object

setMemberListAccess

public void setMemberListAccess(MemberListAccess access)
Reset the member list access on this panel
Parameters:
access - A new DataAccess object

setHelpProvider

public void setHelpProvider(oracle.bali.ewt.help.HelpProvider helpProvider)
Sets the Help provider for this panel.
Parameters:
helpProvider - help provider

getHelpProvider

public oracle.bali.ewt.help.HelpProvider getHelpProvider()
Gets the Help provider for this panel.
Returns:
HelpProvider help provider

setFormatElementsUsed

public void setFormatElementsUsed(boolean[] selected)
Set the array of boolean on the format list

getFormatElementsUsed

public boolean[] getFormatElementsUsed()
Return an array of boolean from the format list

isFormatElementSelected

public boolean isFormatElementSelected(int i)
Return the selection status of each element on formatlist

setMemberLabelType

public void setMemberLabelType(java.lang.String s)
set condition list label type, default is shortlabel

getMemberLabelType

public java.lang.String getMemberLabelType()
set condition list label type

getPreferredSize

public java.awt.Dimension getPreferredSize()
Return preferred size of this panel
Overrides:
getPreferredSize in class javax.swing.JComponent

setLocale

public void setLocale(java.util.Locale loc)
Specifies the current Locale that the gridView uses.
Overrides:
setLocale in class java.awt.Component
Parameters:
loc - The current Locale.

getLocale

public java.util.Locale getLocale()
Return the current Locale that the gridView uses.
Overrides:
getLocale in class java.awt.Component

getDiscriminator

public abstract Discriminator getDiscriminator()
Return the discriminator created by selecting conditions on this panel.
Returns:
Discriminator a discriminator based on the condition list

setConditions

public void setConditions(java.util.Vector data)
Parameters:
a - vector data of ConditionElement

cleanUp

public void cleanUp()
Clean up memory and space

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.