Skip navigation links


com.essbase.eas.essbase.ui.outline.members.formula
Class FormulaTemplatesDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by com.essbase.eas.ui.StandardDialog
                          extended by com.essbase.eas.essbase.ui.outline.members.formula.FormulaTemplatesDialog

All Implemented Interfaces:
ScriptEditorAction, TextEditor, ModalDialog, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class FormulaTemplatesDialog
extends StandardDialog
implements TextEditor, ScriptEditorAction, java.awt.event.FocusListener
See Also:
Serialized Form

Nested Class Summary
static class FormulaTemplatesDialog.FormulaTokenMarker
           

 

Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog

 

Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType

 

Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow

 

Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer

 

Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy

 

Field Summary
static java.lang.String ASO_TEMPLATES_FILE
           
protected  java.util.ResourceBundle resources
           
static java.lang.String TEMPLATES_TYPE
           

 

Fields inherited from class com.essbase.eas.ui.StandardDialog
adapter, busyCursor, buttons, cancelBtn, handledOK, helpBtn, okBtn

 

Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled

 

Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE

 

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT

 

Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE

 

Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH

 

Method Summary
 void addCaretListener(javax.swing.event.CaretListener listener)
           
 void addDocumentListener(javax.swing.event.DocumentListener listener)
           
 void append(java.lang.Object object, boolean undoable)
           
 void beginCompoundEdit(boolean start)
           
 boolean canClear()
           
 boolean canCopy()
           
 boolean canCut()
           
 boolean canFind()
           
 boolean canPaste()
           
 boolean canRedo()
           
 boolean canReplace()
           
 boolean canSelectAll()
           
 boolean canSupportAutoComplete()
           
 boolean canUndo()
           
 void clean()
           
 void clear()
           
 void copy()
           
 void cut()
           
 void discard()
           
 void doCompleteWord(java.awt.event.KeyEvent e)
           
 void endCompoundEdit(boolean start)
           
 void endInsert()
           
 void ensureCapacity(int buffer_size, int lines)
           
 java.lang.String filterInvalidChars(java.lang.String s, char c)
           
 void find()
           
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 int getCaretLine()
           
 int getCaretPosition()
           
 java.awt.Point getCaretXY()
           
 char getCharAt(int pos)
           
 javax.swing.JPopupMenu getContextMenu()
           
 javax.swing.text.Document getDocument()
           
 java.awt.Component getEditingComponent()
           
 CMenu getEditMenu(java.lang.Object owner)
           
 java.awt.Font getEditorFont()
           
 java.awt.event.KeyListener getInputHandler()
           
 int getLength()
           
 int getLineCount()
           
 int getLineEndOffset(int offset)
           
 int getLineOfOffset(int offset)
           
 java.lang.String getLineText(int line)
           
 java.lang.String getSelectedText()
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 int getTabSize()
           
 java.lang.String getText()
           
 java.lang.String getText(int start, int len)
           
 void handleAction(Member member, MemberTree tree, char startQuote, char endQuote)
          Method called when 'Insert Member' context menu item is invoked from the Outline Member tree
 void insertString(int offset, java.lang.String text)
           
 boolean isDirty()
           
 boolean isEditable()
           
 void paste()
           
 void processKeyEvent(java.awt.event.KeyEvent e)
           
 void read(java.io.Reader reader)
           
 void redo()
           
 void remove(int offset, int len)
           
 void removeCaretListener(javax.swing.event.CaretListener listener)
           
 void removeDocumentListener(javax.swing.event.DocumentListener listener)
           
 void replace()
           
 void scrollTo(int line, int offset)
           
 void select(int startpos, int endpos)
           
 void selectAll()
           
 void setAutoCompleteContext(java.lang.Object context)
           
 void setBlockCaretEnabled(boolean enabled)
           
 void setCaretBlinkEnabled(boolean enabled)
           
 void setCaretPosition(int pos)
           
 void setCaretVisibleAlways(boolean visible)
           
 void setContextMenu(javax.swing.JPopupMenu menu)
           
 void setDocument(javax.swing.text.Document doc)
           
 void setEditable(boolean editable)
           
 void setKeyEventInterceptor(java.awt.event.KeyListener listener)
           
 void setLineWrap(boolean wrap)
           
 void setModified(boolean modified)
           
 void setSelectedText(java.lang.String insertedText)
           
 void setSelectionEnd(int end)
           
 void setSelectionStart(int start)
           
 void setStatus()
           
 void setTabSize(int tabSize)
           
 void setText(java.lang.Object object)
           
 void setText(java.lang.Object object, boolean undoable)
           
 void setTokenMarker(EditorTokenMarker marker)
           
 void setWordWrap(boolean wrap)
           
static void showDialog(TextEditor editor, FormulaTemplateXMLParser parser, Representation representation)
           
 void startInsert()
           
 void undo()
           
 void waitingCursor(boolean wait)
           

 

Methods inherited from class com.essbase.eas.ui.StandardDialog
dispose, doModal, doModal, doWindowClosing, finalize, getSafeOwner, getStringSafely, getValue, handleCancel, handleOk, handleWindowClosed, handleWindowClosing, handleWindowOpened, localizeComponent, localizeComponents, localizeWindow, localizeWindow, readBounds, readBounds, resetBusyCursor, saveBounds, setBusyCursor, setHandledOK, setSaveBounds, setTitle, show, showErrorMessage, showStatusMessage

 

Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update

 

Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setUndecorated, setVisible, toBack

 

Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront

 

Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle

 

Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface com.essbase.eas.ui.editor.TextEditor
requestFocus, setFont

 

Field Detail

resources

protected java.util.ResourceBundle resources

ASO_TEMPLATES_FILE

public static final java.lang.String ASO_TEMPLATES_FILE
See Also:
Constant Field Values

TEMPLATES_TYPE

public static final java.lang.String TEMPLATES_TYPE
See Also:
Constant Field Values

Method Detail

showDialog

public static void showDialog(TextEditor editor,
                              FormulaTemplateXMLParser parser,
                              Representation representation)

addCaretListener

public void addCaretListener(javax.swing.event.CaretListener listener)
Specified by:
addCaretListener in interface TextEditor

addDocumentListener

public void addDocumentListener(javax.swing.event.DocumentListener listener)
Specified by:
addDocumentListener in interface TextEditor

append

public void append(java.lang.Object object,
                   boolean undoable)
Specified by:
append in interface TextEditor

beginCompoundEdit

public void beginCompoundEdit(boolean start)
Specified by:
beginCompoundEdit in interface TextEditor

canClear

public boolean canClear()
Specified by:
canClear in interface TextEditor

canCopy

public boolean canCopy()
Specified by:
canCopy in interface TextEditor

canCut

public boolean canCut()
Specified by:
canCut in interface TextEditor

canFind

public boolean canFind()
Specified by:
canFind in interface TextEditor

canPaste

public boolean canPaste()
Specified by:
canPaste in interface TextEditor

canRedo

public boolean canRedo()
Specified by:
canRedo in interface TextEditor

canReplace

public boolean canReplace()
Specified by:
canReplace in interface TextEditor

canSelectAll

public boolean canSelectAll()
Specified by:
canSelectAll in interface TextEditor

canSupportAutoComplete

public boolean canSupportAutoComplete()
Specified by:
canSupportAutoComplete in interface TextEditor

canUndo

public boolean canUndo()
Specified by:
canUndo in interface TextEditor

clean

public void clean()
Specified by:
clean in interface TextEditor

clear

public void clear()
Specified by:
clear in interface TextEditor

copy

public void copy()
Specified by:
copy in interface TextEditor

cut

public void cut()
Specified by:
cut in interface TextEditor

discard

public void discard()
Specified by:
discard in interface TextEditor

doCompleteWord

public void doCompleteWord(java.awt.event.KeyEvent e)
Specified by:
doCompleteWord in interface TextEditor

endCompoundEdit

public void endCompoundEdit(boolean start)
Specified by:
endCompoundEdit in interface TextEditor

endInsert

public void endInsert()
Specified by:
endInsert in interface TextEditor

ensureCapacity

public void ensureCapacity(int buffer_size,
                           int lines)
Specified by:
ensureCapacity in interface TextEditor

filterInvalidChars

public java.lang.String filterInvalidChars(java.lang.String s,
                                           char c)
Specified by:
filterInvalidChars in interface TextEditor

find

public void find()
Specified by:
find in interface TextEditor

getCaretLine

public int getCaretLine()
Specified by:
getCaretLine in interface TextEditor

getCaretPosition

public int getCaretPosition()
Specified by:
getCaretPosition in interface TextEditor

getCaretXY

public java.awt.Point getCaretXY()
Specified by:
getCaretXY in interface TextEditor

getCharAt

public char getCharAt(int pos)
Specified by:
getCharAt in interface TextEditor

getContextMenu

public javax.swing.JPopupMenu getContextMenu()
Specified by:
getContextMenu in interface TextEditor

getDocument

public javax.swing.text.Document getDocument()
Specified by:
getDocument in interface TextEditor

getEditMenu

public CMenu getEditMenu(java.lang.Object owner)
Specified by:
getEditMenu in interface TextEditor

getEditingComponent

public java.awt.Component getEditingComponent()
Specified by:
getEditingComponent in interface TextEditor

getEditorFont

public java.awt.Font getEditorFont()
Specified by:
getEditorFont in interface TextEditor

getInputHandler

public java.awt.event.KeyListener getInputHandler()
Specified by:
getInputHandler in interface TextEditor

getLength

public int getLength()
Specified by:
getLength in interface TextEditor

getLineCount

public int getLineCount()
Specified by:
getLineCount in interface TextEditor

getLineEndOffset

public int getLineEndOffset(int offset)
Specified by:
getLineEndOffset in interface TextEditor

getLineOfOffset

public int getLineOfOffset(int offset)
Specified by:
getLineOfOffset in interface TextEditor

getLineText

public java.lang.String getLineText(int line)
Specified by:
getLineText in interface TextEditor

getSelectedText

public java.lang.String getSelectedText()
Specified by:
getSelectedText in interface TextEditor

getSelectionEnd

public int getSelectionEnd()
Specified by:
getSelectionEnd in interface TextEditor

getSelectionStart

public int getSelectionStart()
Specified by:
getSelectionStart in interface TextEditor

getTabSize

public int getTabSize()
Specified by:
getTabSize in interface TextEditor

getText

public java.lang.String getText()
Specified by:
getText in interface TextEditor

getText

public java.lang.String getText(int start,
                                int len)
Specified by:
getText in interface TextEditor

insertString

public void insertString(int offset,
                         java.lang.String text)
Specified by:
insertString in interface TextEditor

isDirty

public boolean isDirty()
Specified by:
isDirty in interface TextEditor

isEditable

public boolean isEditable()
Specified by:
isEditable in interface TextEditor

paste

public void paste()
Specified by:
paste in interface TextEditor

read

public void read(java.io.Reader reader)
          throws java.io.IOException
Specified by:
read in interface TextEditor
Throws:
java.io.IOException

redo

public void redo()
Specified by:
redo in interface TextEditor

remove

public void remove(int offset,
                   int len)
Specified by:
remove in interface TextEditor

removeCaretListener

public void removeCaretListener(javax.swing.event.CaretListener listener)
Specified by:
removeCaretListener in interface TextEditor

removeDocumentListener

public void removeDocumentListener(javax.swing.event.DocumentListener listener)
Specified by:
removeDocumentListener in interface TextEditor

replace

public void replace()
Specified by:
replace in interface TextEditor

scrollTo

public void scrollTo(int line,
                     int offset)
Specified by:
scrollTo in interface TextEditor

select

public void select(int startpos,
                   int endpos)
Specified by:
select in interface TextEditor

selectAll

public void selectAll()
Specified by:
selectAll in interface TextEditor

setAutoCompleteContext

public void setAutoCompleteContext(java.lang.Object context)
Specified by:
setAutoCompleteContext in interface TextEditor

setBlockCaretEnabled

public void setBlockCaretEnabled(boolean enabled)
Specified by:
setBlockCaretEnabled in interface TextEditor

setCaretBlinkEnabled

public void setCaretBlinkEnabled(boolean enabled)
Specified by:
setCaretBlinkEnabled in interface TextEditor

setCaretPosition

public void setCaretPosition(int pos)
Specified by:
setCaretPosition in interface TextEditor

setCaretVisibleAlways

public void setCaretVisibleAlways(boolean visible)
Specified by:
setCaretVisibleAlways in interface TextEditor

setContextMenu

public void setContextMenu(javax.swing.JPopupMenu menu)
Specified by:
setContextMenu in interface TextEditor

setDocument

public void setDocument(javax.swing.text.Document doc)
Specified by:
setDocument in interface TextEditor

setEditable

public void setEditable(boolean editable)
Specified by:
setEditable in interface TextEditor

setKeyEventInterceptor

public void setKeyEventInterceptor(java.awt.event.KeyListener listener)
Specified by:
setKeyEventInterceptor in interface TextEditor

setLineWrap

public void setLineWrap(boolean wrap)
Specified by:
setLineWrap in interface TextEditor

setModified

public void setModified(boolean modified)
Specified by:
setModified in interface TextEditor

setSelectedText

public void setSelectedText(java.lang.String insertedText)
Specified by:
setSelectedText in interface TextEditor

setSelectionEnd

public void setSelectionEnd(int end)
Specified by:
setSelectionEnd in interface TextEditor

setSelectionStart

public void setSelectionStart(int start)
Specified by:
setSelectionStart in interface TextEditor

setStatus

public void setStatus()
Specified by:
setStatus in interface TextEditor

setTabSize

public void setTabSize(int tabSize)
Specified by:
setTabSize in interface TextEditor

setText

public void setText(java.lang.Object object)
Specified by:
setText in interface TextEditor

setText

public void setText(java.lang.Object object,
                    boolean undoable)
Specified by:
setText in interface TextEditor

setTokenMarker

public void setTokenMarker(EditorTokenMarker marker)
Specified by:
setTokenMarker in interface TextEditor

setWordWrap

public void setWordWrap(boolean wrap)
Specified by:
setWordWrap in interface TextEditor

startInsert

public void startInsert()
Specified by:
startInsert in interface TextEditor

undo

public void undo()
Specified by:
undo in interface TextEditor

waitingCursor

public void waitingCursor(boolean wait)
Specified by:
waitingCursor in interface TextEditor

processKeyEvent

public void processKeyEvent(java.awt.event.KeyEvent e)
Specified by:
processKeyEvent in interface TextEditor
Overrides:
processKeyEvent in class java.awt.Component

handleAction

public void handleAction(Member member,
                         MemberTree tree,
                         char startQuote,
                         char endQuote)
Method called when 'Insert Member' context menu item is invoked from the Outline Member tree
Specified by:
handleAction in interface ScriptEditorAction

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.