public class SchemaExplorer extends JPanel implements TreeSelectionListener, CellEditorListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
SchemaExplorer.PopupTrigger |
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
(package private) static String[] |
DEF_AGG_EXCLUDE |
(package private) static String[] |
DEF_AGG_FACT_COUNT |
(package private) static String[] |
DEF_AGG_FOREIGN_KEY |
(package private) static String[] |
DEF_AGG_IGNORE_COLUMN |
(package private) static String[] |
DEF_AGG_LEVEL |
(package private) static String[] |
DEF_AGG_LEVEL_PROP |
(package private) static String[] |
DEF_AGG_MEASURE |
(package private) static String[] |
DEF_AGG_NAME |
(package private) static String[] |
DEF_AGG_PATTERN |
(package private) static String[] |
DEF_ANNOTATION |
(package private) static String[] |
DEF_CALCULATED_MEMBER |
(package private) static String[] |
DEF_CALCULATED_MEMBER_PROPERTY |
(package private) static String[] |
DEF_CLOSURE |
(package private) static String[] |
DEF_COLUMN |
(package private) static String[] |
DEF_CUBE |
(package private) static String[] |
DEF_CUBE_GRANT |
(package private) static String[] |
DEF_DEFAULT |
(package private) static String[] |
DEF_DIMENSION |
(package private) static String[] |
DEF_DIMENSION_GRANT |
(package private) static String[] |
DEF_DIMENSION_USAGE |
(package private) static String[] |
DEF_EXPRESSION_VIEW |
(package private) static String[] |
DEF_FORMATTER |
(package private) static String[] |
DEF_FORMULA |
(package private) static String[] |
DEF_HIERARCHY |
(package private) static String[] |
DEF_HIERARCHY_GRANT |
(package private) static String[] |
DEF_JOIN |
(package private) static String[] |
DEF_LEVEL |
(package private) static String[] |
DEF_MEASURE |
(package private) static String[] |
DEF_MEMBER_GRANT |
(package private) static String[] |
DEF_NAMED_SET |
(package private) static String[] |
DEF_PARAMETER |
(package private) static String[] |
DEF_PARAMETER_SCHEMA |
(package private) static String[] |
DEF_PROPERTY |
(package private) static String[] |
DEF_RELATION |
(package private) static String[] |
DEF_ROLE |
(package private) static String[] |
DEF_SCHEMA |
(package private) static String[] |
DEF_SCHEMA_GRANT |
(package private) static String[] |
DEF_SCRIPT |
(package private) static String[] |
DEF_SQL |
(package private) static String[] |
DEF_TABLE |
(package private) static String[] |
DEF_USER_DEFINED_FUNCTION |
(package private) static String[] |
DEF_VIEW |
(package private) static String[] |
DEF_VIRTUAL_CUBE |
(package private) static String[] |
DEF_VIRTUAL_CUBE_DIMENSION |
(package private) static String[] |
DEF_VIRTUAL_CUBE_MEASURE |
Object |
lastSelected |
(package private) JTree |
tree |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
SchemaExplorer(Workbench workbench)
Creates new form SchemaExplorer
|
SchemaExplorer(Workbench workbench,
File f,
JdbcMetaData jdbcMetaData,
boolean newFile,
JInternalFrame parentIFrame) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public Object lastSelected
static final String[] DEF_DEFAULT
static final String[] DEF_VIRTUAL_CUBE
static final String[] DEF_VIRTUAL_CUBE_MEASURE
static final String[] DEF_VIRTUAL_CUBE_DIMENSION
static final String[] DEF_VIEW
static final String[] DEF_TABLE
static final String[] DEF_AGG_FACT_COUNT
static final String[] DEF_AGG_NAME
static final String[] DEF_AGG_PATTERN
static final String[] DEF_AGG_EXCLUDE
static final String[] DEF_AGG_IGNORE_COLUMN
static final String[] DEF_AGG_FOREIGN_KEY
static final String[] DEF_AGG_MEASURE
static final String[] DEF_AGG_LEVEL
static final String[] DEF_AGG_LEVEL_PROP
static final String[] DEF_CLOSURE
static final String[] DEF_RELATION
static final String[] DEF_SQL
static final String[] DEF_ANNOTATION
static final String[] DEF_SCHEMA
static final String[] DEF_PROPERTY
static final String[] DEF_PARAMETER_SCHEMA
static final String[] DEF_PARAMETER
static final String[] DEF_MEASURE
static final String[] DEF_CALCULATED_MEMBER
static final String[] DEF_FORMULA
static final String[] DEF_CALCULATED_MEMBER_PROPERTY
static final String[] DEF_NAMED_SET
static final String[] DEF_USER_DEFINED_FUNCTION
static final String[] DEF_SCRIPT
static final String[] DEF_LEVEL
static final String[] DEF_JOIN
static final String[] DEF_HIERARCHY
static final String[] DEF_FORMATTER
static final String[] DEF_EXPRESSION_VIEW
static final String[] DEF_DIMENSION_USAGE
static final String[] DEF_DIMENSION
static final String[] DEF_CUBE
static final String[] DEF_ROLE
static final String[] DEF_SCHEMA_GRANT
static final String[] DEF_CUBE_GRANT
static final String[] DEF_DIMENSION_GRANT
static final String[] DEF_HIERARCHY_GRANT
static final String[] DEF_MEMBER_GRANT
static final String[] DEF_COLUMN
JTree tree
public SchemaExplorer(Workbench workbench)
public SchemaExplorer(Workbench workbench, File f, JdbcMetaData jdbcMetaData, boolean newFile, JInternalFrame parentIFrame)
protected void arrowButtonUpAction(ActionEvent evt)
protected void arrowButtonDownAction(ActionEvent evt)
protected void setTableCellFocus(int row)
protected void addCube(ActionEvent evt)
protected void addParameter(ActionEvent evt)
protected void addRole(ActionEvent evt)
protected void addVirtualCube(ActionEvent evt)
protected void addUserDefinedFunction(ActionEvent evt)
protected void addMeasure(ActionEvent evt)
protected void addAggPattern(ActionEvent evt)
protected void addAggName(ActionEvent evt)
protected void addAggExclude(ActionEvent evt)
protected void addAggIgnoreColumn(ActionEvent evt)
protected void addAggForeignKey(ActionEvent evt)
protected void addAggMeasure(ActionEvent evt)
protected void addAggLevel(ActionEvent evt)
protected void addAggLevelProperty(ActionEvent evt)
protected void addAggFactCount(ActionEvent evt)
protected void addVirtualCubeMeasure(ActionEvent evt)
protected void addCalculatedMember(ActionEvent evt)
protected boolean editMode(EventObject evt)
protected void delete(EventObject evt)
void delete(TreePath tpath)
protected void addDimension(ActionEvent evt)
protected void addVirtualCubeDimension(ActionEvent evt)
protected void addNamedSet(ActionEvent evt)
protected void addDimensionUsage(ActionEvent evt)
protected void addSchemaGrant(ActionEvent evt)
protected void addCubeGrant(ActionEvent evt)
protected void addDimensionGrant(ActionEvent evt)
protected void addHierarchyGrant(ActionEvent evt)
protected void addMemberGrant(ActionEvent evt)
protected void addAnnotations(ActionEvent evt)
protected void addAnnotation(ActionEvent evt)
protected void addLevel(ActionEvent evt)
protected void addSQL(ActionEvent evt)
protected void addScript(ActionEvent evt)
protected void addCellFormatter(ActionEvent evt)
protected mondrian.gui.SchemaExplorer.LevelInfo getSelectedLevel(ActionEvent evt)
protected void addMemberFormatter(ActionEvent evt)
protected void addPropertyFormatter(ActionEvent evt)
protected void addKeyExp(ActionEvent evt)
protected void addNameExp(ActionEvent evt)
protected void addOrdinalExp(ActionEvent evt)
protected void addCaptionExp(ActionEvent evt)
protected void addParentExp(ActionEvent evt)
protected void addMeasureExp(ActionEvent evt)
protected void addFormula(ActionEvent evt)
protected void addTable(ActionEvent evt)
protected void addJoin(ActionEvent evt)
protected void addView(ActionEvent evt)
protected void addInlineTable(ActionEvent evt)
protected void addRelation(ActionEvent evt, MondrianGuiDef.RelationOrJoin relation)
protected void addHierarchy(ActionEvent evt)
protected void moveLevelUp(ActionEvent evt)
protected void moveLevelDown(ActionEvent evt)
protected void addProperty(ActionEvent evt)
protected void addCalculatedMemberProperty(ActionEvent evt)
protected void addCalcMemberPropToCalcMember(MondrianGuiDef.CalculatedMember calcMember, int parentIndex, TreePath tpath)
protected void addCalcMemberPropToMeasure(MondrianGuiDef.Measure measure, int parentIndex, TreePath tpath)
protected void addClosure(ActionEvent evt)
public MondrianGuiDef.Schema getSchema()
public File getSchemaFile()
public void setSchemaFile(File f)
public void valueChanged(TreeSelectionEvent e)
valueChanged
in interface TreeSelectionListener
e
- the event that characterizes the change.public void editingCanceled(ChangeEvent e)
editingCanceled
in interface CellEditorListener
CellEditorListener.editingCanceled(ChangeEvent)
public void editingStopped(ChangeEvent e)
editingStopped
in interface CellEditorListener
CellEditorListener.editingStopped(ChangeEvent)
public boolean isNewFile()
public void setNewFile(boolean newFile)
public boolean isDirty()
public void setDirty(boolean dirty)
public void setTitle()
public void setDirtyFlag(boolean dirtyFlag)
public Object getParentObject()
public String getJdbcConnectionUrl()
public String getJdbcUsername()
public String getJdbcPassword()
public String getErrMsg()
public boolean isEditModeXML()
public I18n getResourceConverter()
public static void getTableNamesForJoin(MondrianGuiDef.RelationOrJoin aRelOrJoin, Set<String> aTableNames)
public static String[] getTableNameForAlias(MondrianGuiDef.RelationOrJoin aRelOrJoin, String anAlias)
public void resetMetaData(JdbcMetaData aMetaData)
public JTreeUpdater getTreeUpdater()