mondrian.gui
Class SchemaExplorer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
mondrian.gui.SchemaExplorer
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, TreeSelectionListener
public class SchemaExplorer
- extends JPanel
- implements TreeSelectionListener, CellEditorListener
- Author:
- sean
- See Also:
- Serialized Form
-
-
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
lastSelected
public Object lastSelected
DEF_DEFAULT
static final String[] DEF_DEFAULT
DEF_VIRTUAL_CUBE
static final String[] DEF_VIRTUAL_CUBE
DEF_VIRTUAL_CUBE_MEASURE
static final String[] DEF_VIRTUAL_CUBE_MEASURE
DEF_VIRTUAL_CUBE_DIMENSION
static final String[] DEF_VIRTUAL_CUBE_DIMENSION
DEF_VIEW
static final String[] DEF_VIEW
DEF_TABLE
static final String[] DEF_TABLE
DEF_AGG_FACT_COUNT
static final String[] DEF_AGG_FACT_COUNT
DEF_AGG_NAME
static final String[] DEF_AGG_NAME
DEF_AGG_PATTERN
static final String[] DEF_AGG_PATTERN
DEF_AGG_EXCLUDE
static final String[] DEF_AGG_EXCLUDE
DEF_AGG_IGNORE_COLUMN
static final String[] DEF_AGG_IGNORE_COLUMN
DEF_AGG_FOREIGN_KEY
static final String[] DEF_AGG_FOREIGN_KEY
DEF_AGG_MEASURE
static final String[] DEF_AGG_MEASURE
DEF_AGG_LEVEL
static final String[] DEF_AGG_LEVEL
DEF_CLOSURE
static final String[] DEF_CLOSURE
DEF_RELATION
static final String[] DEF_RELATION
DEF_SQL
static final String[] DEF_SQL
DEF_SCHEMA
static final String[] DEF_SCHEMA
DEF_PROPERTY
static final String[] DEF_PROPERTY
DEF_PARAMETER
static final String[] DEF_PARAMETER
DEF_MEASURE
static final String[] DEF_MEASURE
DEF_CALCULATED_MEMBER
static final String[] DEF_CALCULATED_MEMBER
DEF_FORMULA
static final String[] DEF_FORMULA
DEF_CALCULATED_MEMBER_PROPERTY
static final String[] DEF_CALCULATED_MEMBER_PROPERTY
DEF_NAMED_SET
static final String[] DEF_NAMED_SET
DEF_USER_DEFINED_FUNCTION
static final String[] DEF_USER_DEFINED_FUNCTION
DEF_LEVEL
static final String[] DEF_LEVEL
DEF_JOIN
static final String[] DEF_JOIN
DEF_HIERARCHY
static final String[] DEF_HIERARCHY
DEF_EXPRESSION_VIEW
static final String[] DEF_EXPRESSION_VIEW
DEF_DIMENSION_USAGE
static final String[] DEF_DIMENSION_USAGE
DEF_DIMENSION
static final String[] DEF_DIMENSION
DEF_CUBE
static final String[] DEF_CUBE
DEF_ROLE
static final String[] DEF_ROLE
DEF_SCHEMA_GRANT
static final String[] DEF_SCHEMA_GRANT
DEF_CUBE_GRANT
static final String[] DEF_CUBE_GRANT
DEF_DIMENSION_GRANT
static final String[] DEF_DIMENSION_GRANT
DEF_HIERARCHY_GRANT
static final String[] DEF_HIERARCHY_GRANT
DEF_MEMBER_GRANT
static final String[] DEF_MEMBER_GRANT
DEF_COLUMN
static final String[] DEF_COLUMN
SchemaExplorer
public SchemaExplorer(Workbench workbench)
- Creates new form SchemaExplorer
SchemaExplorer
public SchemaExplorer(Workbench workbench,
File f,
JDBCMetaData jdbcMetaData,
boolean newFile,
JInternalFrame parentIFrame)
arrowButtonUpAction
protected void arrowButtonUpAction(ActionEvent evt)
arrowButtonDownAction
protected void arrowButtonDownAction(ActionEvent evt)
setTableCellFocus
protected void setTableCellFocus(int row)
- Several methods are called, e.g. editCellAt, to get the focus set in the
value column of the specified row. The attribute column has the parameter
name and should not receive focus.
addCube
protected void addCube(ActionEvent evt)
- Parameters:
evt
-
addRole
protected void addRole(ActionEvent evt)
addVirtualCube
protected void addVirtualCube(ActionEvent evt)
addUserDefinedFunction
protected void addUserDefinedFunction(ActionEvent evt)
addMeasure
protected void addMeasure(ActionEvent evt)
- Parameters:
evt
-
addAggPattern
protected void addAggPattern(ActionEvent evt)
addAggName
protected void addAggName(ActionEvent evt)
addAggExclude
protected void addAggExclude(ActionEvent evt)
addAggIgnoreColumn
protected void addAggIgnoreColumn(ActionEvent evt)
addAggForeignKey
protected void addAggForeignKey(ActionEvent evt)
addAggMeasure
protected void addAggMeasure(ActionEvent evt)
addAggLevel
protected void addAggLevel(ActionEvent evt)
addAggFactCount
protected void addAggFactCount(ActionEvent evt)
addVirtualCubeMeasure
protected void addVirtualCubeMeasure(ActionEvent evt)
addCalculatedMember
protected void addCalculatedMember(ActionEvent evt)
editMode
protected boolean editMode(EventObject evt)
delete
protected void delete(EventObject evt)
addDimension
protected void addDimension(ActionEvent evt)
- Parameters:
evt
-
addVirtualCubeDimension
protected void addVirtualCubeDimension(ActionEvent evt)
addNamedSet
protected void addNamedSet(ActionEvent evt)
addDimensionUsage
protected void addDimensionUsage(ActionEvent evt)
addSchemaGrant
protected void addSchemaGrant(ActionEvent evt)
addCubeGrant
protected void addCubeGrant(ActionEvent evt)
addDimensionGrant
protected void addDimensionGrant(ActionEvent evt)
addHierarchyGrant
protected void addHierarchyGrant(ActionEvent evt)
addMemberGrant
protected void addMemberGrant(ActionEvent evt)
addLevel
protected void addLevel(ActionEvent evt)
- Parameters:
evt
-
addSQL
protected void addSQL(ActionEvent evt)
addKeyExp
protected void addKeyExp(ActionEvent evt)
addNameExp
protected void addNameExp(ActionEvent evt)
addOrdinalExp
protected void addOrdinalExp(ActionEvent evt)
addParentExp
protected void addParentExp(ActionEvent evt)
addMeasureExp
protected void addMeasureExp(ActionEvent evt)
addRelation
protected void addRelation(ActionEvent evt)
addHierarchy
protected void addHierarchy(ActionEvent evt)
addProperty
protected void addProperty(ActionEvent evt)
- Parameters:
evt
-
addClosure
protected void addClosure(ActionEvent evt)
- Parameters:
evt
-
getSchema
public MondrianGuiDef.Schema getSchema()
getSchemaFile
public File getSchemaFile()
- returns the schema file
- Returns:
- File
setSchemaFile
public void setSchemaFile(File f)
- sets the schema file
- Parameters:
f
-
valueChanged
public void valueChanged(TreeSelectionEvent e)
- Called whenever the value of the selection changes.
- Specified by:
valueChanged
in interface TreeSelectionListener
- Parameters:
e
- the event that characterizes the change.
editingCanceled
public void editingCanceled(ChangeEvent e)
- Specified by:
editingCanceled
in interface CellEditorListener
- See Also:
CellEditorListener.editingCanceled(ChangeEvent)
editingStopped
public void editingStopped(ChangeEvent e)
- Specified by:
editingStopped
in interface CellEditorListener
- See Also:
CellEditorListener.editingStopped(ChangeEvent)
isNewFile
public boolean isNewFile()
setNewFile
public void setNewFile(boolean newFile)
isDirty
public boolean isDirty()
setDirty
public void setDirty(boolean dirty)
setTitle
public void setTitle()
setDirtyFlag
public void setDirtyFlag(boolean dirtyFlag)
getParentObject
public Object getParentObject()
getJdbcConnectionUrl
public String getJdbcConnectionUrl()
getJdbcUsername
public String getJdbcUsername()
getJdbcPassword
public String getJdbcPassword()
getErrMsg
public String getErrMsg()
isEditModeXML
public boolean isEditModeXML()
getResourceConverter
public I18n getResourceConverter()