Skip navigation links


com.essbase.eas.ui
Class ReadOnlyTextFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JInternalFrame
                  extended by com.essbase.eas.client.intf.CInternalFrame
                      extended by com.essbase.eas.ui.ReadOnlyTextFrame

All Implemented Interfaces:
SaveAsRequestor, ModalDialog, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
Direct Known Subclasses:
ConsoleLogViewerFrame, EssbaseReadOnlyTextFrame, TextFileViewerFrame

public class ReadOnlyTextFrame
extends CInternalFrame
implements ModalDialog, SaveAsRequestor

Displays a text file in read only mode. Scrollbars are displayed as necessary.

Version:
1.01 8/11/02
Author:
Joe Fernandez
See Also:
Serialized Form

Nested Class Summary
 class ReadOnlyTextFrame.ReadonlyToolBar
           

 

Nested classes/interfaces inherited from class javax.swing.JInternalFrame
javax.swing.JInternalFrame.AccessibleJInternalFrame, javax.swing.JInternalFrame.JDesktopIcon

 

Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent

 

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
protected  DefaultFileFilter defFilter
           
protected  java.lang.String emailAttachment
           
protected  short encoding
           
protected  java.awt.Component[] frameMenus
           
protected  java.lang.String frameTitle
           
protected  HelpButton helpButton
           
protected  javax.swing.AbstractAction okAction
           
protected  DialogUtils.MyFocusTraversalPolicy policy
           
protected  java.util.ResourceBundle resources
           
protected  javax.swing.AbstractAction saveToFileAction
           
protected static java.lang.String SELECT_UTF8_KEY
           
protected  java.lang.String strFileName
           
protected static java.lang.String TEXT_EXT_KEY
           
protected static java.lang.String TEXT_KEY
           
protected static java.lang.String UTF8_KEY
           
protected  CCheckBox utf8CB
           

 

Fields inherited from class com.essbase.eas.client.intf.CInternalFrame
BOUNDS, bSaveBounds, cursor, dialogResult, disposed, frameIcon, helpAction, IS_TOOLBARSTATE_CHANGED, m_iCursor, m_toolbar, propertySupport, savedBounds

 

Fields inherited from class javax.swing.JInternalFrame
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY

 

Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 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

 

Constructor Summary
ReadOnlyTextFrame()
           
ReadOnlyTextFrame(java.lang.String title, java.lang.String text)
           
ReadOnlyTextFrame(java.lang.String title, java.lang.String text, short encoding)
           

 

Method Summary
 void addFontComboBox()
           
 void disableHelpReference()
           
 void dispose()
           
 void frameOpened()
           
protected  ButtonPanel getButtonPanel()
           
protected  java.lang.String getCharacterSet()
           
protected  java.lang.String getEditorText()
           
 FontComboBox getFontComboBox()
           
 java.awt.Component[] getFrameMenus()
          returns the menu items that this object needs merged into the main menu.
protected  DefaultFileFilter getSaveFilter()
           
 void handleClose()
           
 void initExtraComponents(javax.swing.JPanel panel)
           
protected  void initListeners()
           
 void initSaveAsDialogComponents(javax.swing.JTabbedPane mainPanel)
           
 boolean isPrintable()
           
 boolean isSaveable()
           
 void jbInit(java.lang.String text)
           
 void onSave()
           
 void onSaveAs()
           
 boolean saveAsObject(java.lang.Object source)
           
 void saveAsWindow()
           
protected  boolean saveToFile(java.io.File file)
           
protected  boolean saveToFile(java.io.File file, java.lang.String charset)
           
 boolean saveToFile(java.lang.String strFileName)
           
 void saveWindow()
           
 void setDeleteFileOnExit(boolean delete)
           
 void setDocument(java.lang.Object doc)
           
protected  void setEditorCursor(boolean wait)
           
protected  void setEditorFont(java.awt.Font font)
           
protected  void setEncoding()
           
 void setFocusComponent()
           
 void setHelpReference(java.lang.String helpReference)
           
 void setHelpReference(java.net.URL helpURL)
           
 void setSelected(boolean selected)
           
 void setText(java.io.File file, java.lang.String charset)
           
 void setText(java.util.List textList)
           
 void setText(java.lang.String text)
           
 void setText(TextFileReader reader)
           
static void showFrame(java.io.File file, java.lang.String charset, boolean deleteOnExit)
           
static void showFrame(java.lang.String title, java.io.File file, java.lang.String charset)
           
static void showFrame(java.lang.String title, java.io.File file, java.lang.String charset, boolean deleteOnExit)
           
static void showFrame(java.lang.String title, java.lang.String text)
           
static void showFrame(java.lang.String title, java.lang.String text, boolean deleteOnExit)
           
static void showFrame(java.lang.String title, java.lang.String text, short encoding, boolean deleteOnExit)
           
 void startPrinting(CPrintable print)
           

 

Methods inherited from class com.essbase.eas.client.intf.CInternalFrame
addPropertyChangeListener, addPropertyChangeListener, addToDesktop, emailWindow, fireStateChanged, frameActivated, frameClosed, frameClosing, frameDeactivated, frameDeiconified, frameIconified, getObjectsToEmail, getPrintMenuText, getPrintTip, getSaveAsMenuText, getSaveMenuText, getSaveTip, getToolbar, isEmailable, isExiting, isModified, isPreviewable, isThisYou, jbInit, printPriviewWindow, printWindow, processEvent, removePropertyChangeListener, saveBounds, saveOnClosing, setCursor, setExiting, setReadBounds, setSaveBounds, setTitle, toString

 

Methods inherited from class javax.swing.JInternalFrame
addImpl, addInternalFrameListener, createRootPane, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLastCursor, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setCursor, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setUI, show, toBack, toFront, updateUI

 

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, 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, 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, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, 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, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, transferFocus, transferFocusUpCycle

 

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

 

Field Detail

TEXT_KEY

protected static final java.lang.String TEXT_KEY
See Also:
Constant Field Values

TEXT_EXT_KEY

protected static final java.lang.String TEXT_EXT_KEY
See Also:
Constant Field Values

SELECT_UTF8_KEY

protected static final java.lang.String SELECT_UTF8_KEY
See Also:
Constant Field Values

UTF8_KEY

protected static final java.lang.String UTF8_KEY
See Also:
Constant Field Values

emailAttachment

protected java.lang.String emailAttachment

resources

protected java.util.ResourceBundle resources

frameTitle

protected java.lang.String frameTitle

frameMenus

protected java.awt.Component[] frameMenus

strFileName

protected java.lang.String strFileName

helpButton

protected HelpButton helpButton

utf8CB

protected CCheckBox utf8CB

saveToFileAction

protected javax.swing.AbstractAction saveToFileAction

okAction

protected javax.swing.AbstractAction okAction

defFilter

protected DefaultFileFilter defFilter

encoding

protected short encoding

policy

protected DialogUtils.MyFocusTraversalPolicy policy

Constructor Detail

ReadOnlyTextFrame

public ReadOnlyTextFrame()

ReadOnlyTextFrame

public ReadOnlyTextFrame(java.lang.String title,
                         java.lang.String text)

ReadOnlyTextFrame

public ReadOnlyTextFrame(java.lang.String title,
                         java.lang.String text,
                         short encoding)

Method Detail

jbInit

public void jbInit(java.lang.String text)
            throws java.lang.Exception
Throws:
java.lang.Exception

setSelected

public void setSelected(boolean selected)
Overrides:
setSelected in class javax.swing.JInternalFrame

setDocument

public void setDocument(java.lang.Object doc)

setText

public void setText(java.io.File file,
                    java.lang.String charset)

setText

public void setText(TextFileReader reader)

setText

public void setText(java.util.List textList)

setText

public void setText(java.lang.String text)

setHelpReference

public void setHelpReference(java.lang.String helpReference)

setHelpReference

public void setHelpReference(java.net.URL helpURL)

disableHelpReference

public void disableHelpReference()

initListeners

protected void initListeners()

getFrameMenus

public java.awt.Component[] getFrameMenus()
Description copied from class: CInternalFrame
returns the menu items that this object needs merged into the main menu.
Overrides:
getFrameMenus in class CInternalFrame

showFrame

public static void showFrame(java.lang.String title,
                             java.lang.String text)

showFrame

public static void showFrame(java.lang.String title,
                             java.lang.String text,
                             boolean deleteOnExit)

showFrame

public static void showFrame(java.io.File file,
                             java.lang.String charset,
                             boolean deleteOnExit)

showFrame

public static void showFrame(java.lang.String title,
                             java.io.File file,
                             java.lang.String charset)

showFrame

public static void showFrame(java.lang.String title,
                             java.io.File file,
                             java.lang.String charset,
                             boolean deleteOnExit)

showFrame

public static void showFrame(java.lang.String title,
                             java.lang.String text,
                             short encoding,
                             boolean deleteOnExit)

isSaveable

public boolean isSaveable()
Overrides:
isSaveable in class CInternalFrame

saveWindow

public void saveWindow()
Overrides:
saveWindow in class CInternalFrame

saveAsWindow

public void saveAsWindow()
Overrides:
saveAsWindow in class CInternalFrame

onSave

public void onSave()

initSaveAsDialogComponents

public void initSaveAsDialogComponents(javax.swing.JTabbedPane mainPanel)
Specified by:
initSaveAsDialogComponents in interface SaveAsRequestor
Overrides:
initSaveAsDialogComponents in class CInternalFrame

initExtraComponents

public void initExtraComponents(javax.swing.JPanel panel)
Specified by:
initExtraComponents in interface SaveAsRequestor
Overrides:
initExtraComponents in class CInternalFrame

setFocusComponent

public void setFocusComponent()
Specified by:
setFocusComponent in interface SaveAsRequestor
Overrides:
setFocusComponent in class CInternalFrame

saveAsObject

public boolean saveAsObject(java.lang.Object source)
Specified by:
saveAsObject in interface SaveAsRequestor
Overrides:
saveAsObject in class CInternalFrame

onSaveAs

public void onSaveAs()

saveToFile

public boolean saveToFile(java.lang.String strFileName)

setEncoding

protected void setEncoding()

getCharacterSet

protected java.lang.String getCharacterSet()

saveToFile

protected boolean saveToFile(java.io.File file)

saveToFile

protected boolean saveToFile(java.io.File file,
                             java.lang.String charset)

isPrintable

public boolean isPrintable()
Overrides:
isPrintable in class CInternalFrame

startPrinting

public void startPrinting(CPrintable print)
Overrides:
startPrinting in class CInternalFrame

handleClose

public void handleClose()

getSaveFilter

protected DefaultFileFilter getSaveFilter()

frameOpened

public void frameOpened()
Overrides:
frameOpened in class CInternalFrame

getEditorText

protected java.lang.String getEditorText()

setEditorCursor

protected void setEditorCursor(boolean wait)

setEditorFont

protected void setEditorFont(java.awt.Font font)

getButtonPanel

protected ButtonPanel getButtonPanel()

setDeleteFileOnExit

public void setDeleteFileOnExit(boolean delete)

dispose

public void dispose()
Overrides:
dispose in class CInternalFrame

getFontComboBox

public FontComboBox getFontComboBox()

addFontComboBox

public void addFontComboBox()

Skip navigation links


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