|
Extension SDK 10.1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.ide.addin.AbstractView
oracle.ide.log.AbstractLogPage
oracle.ide.log.MessagePage
The MessagePage class provides a simple text field
where clients can log their messages.
| Field Summary | |
protected JAutoScrollPane |
_scrollPane
|
protected javax.swing.text.JTextComponent |
_textComponent
|
static java.lang.String |
MESSAGE_PAGE_ID
|
| Fields inherited from class oracle.ide.addin.AbstractView |
owner, SEPARATOR, viewListeners, viewSelectionListeners |
| Fields inherited from interface oracle.ide.addin.View |
PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP |
| Constructor Summary | |
|
MessagePage()
Default constructor. |
protected |
MessagePage(ViewId viewId)
Creates a MessagePage using thle specified ViewId. |
protected |
MessagePage(ViewId viewId,
javax.swing.Icon icon)
Creates a MessagePage using the specified ViewId
and Icon. |
protected |
MessagePage(ViewId viewId,
javax.swing.Icon icon,
boolean addPage)
Creates a MessagePage using the specified ViewId
and Icon. |
protected |
MessagePage(ViewId viewId,
javax.swing.Icon icon,
boolean addPage,
boolean showStyledText)
Creates a MessagePage using the specified ViewId
and Icon. |
| Method Summary | |
void |
addHref(Href href)
|
void |
addMouseListener(java.awt.event.MouseListener listener)
This implemenation does nothing. |
void |
addStyle(StyledMessage styledMessage)
|
protected void |
appendToTextComponent(java.lang.String msg,
int maxLogLines)
|
protected boolean |
checkLogOpen()
|
void |
clearAll()
Clear all currently displayed messages. |
protected void |
clearTextComponent()
|
protected void |
deleteFromStartOfTextComponent(int linesToDelete,
int offset)
|
ContextMenu |
getContextMenu()
Gets the ContextMenu object, if any, managed by this instance. |
Controller |
getController()
Get the Controller associated with this view. |
java.awt.Component |
getGUI()
Get the root graphical user interface component. |
HelpInfo |
getHelpInfo()
|
protected java.lang.String |
getText()
|
protected boolean |
getWrapLines()
|
protected void |
logMsg(java.lang.Object msg)
Display the specified msg. |
void |
removeMouseListener(java.awt.event.MouseListener listener)
This implemenation does nothing. |
protected void |
replaceTextComponentDocument()
|
protected void |
setLogFileName(java.lang.String fn)
|
protected void |
setWrapLines(boolean wrap)
|
| Methods inherited from class oracle.ide.log.AbstractLogPage |
checkCommands, close, getContext, getTabIcon, getTabName, getTitleName, getToolTip, isVisible, log, requestShow, setOwner, show |
| Methods inherited from class oracle.ide.addin.AbstractView |
activate, addViewListener, addViewSelectionListener, deactivate, fireViewActivated, fireViewClosed, fireViewDeactivated, fireViewSelectionChanged, getContext, getId, getSelection, getToolbar, loadToolbar, loadToolbar, newId, owner, removeViewListener, removeViewSelectionListener, setId, setOwner, setToolbarVisible, updateTitle, updateToolbarActions, updateVisibleActions, updateVisibleActions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.ide.addin.View |
activate, addViewListener, addViewSelectionListener, deactivate, getContext, getId, getSelection, getToolbar, owner, removeViewListener, removeViewSelectionListener, setToolbarVisible, updateTitle, updateVisibleActions |
| Field Detail |
public static final java.lang.String MESSAGE_PAGE_ID
protected javax.swing.text.JTextComponent _textComponent
protected JAutoScrollPane _scrollPane
| Constructor Detail |
public MessagePage()
MessagePage using the
message page view identifier.
protected MessagePage(ViewId viewId)
MessagePage using thle specified ViewId.
protected MessagePage(ViewId viewId,
javax.swing.Icon icon)
MessagePage using the specified ViewId
and Icon.
protected MessagePage(ViewId viewId,
javax.swing.Icon icon,
boolean addPage)
MessagePage using the specified ViewId
and Icon.
protected MessagePage(ViewId viewId,
javax.swing.Icon icon,
boolean addPage,
boolean showStyledText)
MessagePage using the specified ViewId
and Icon.
Some subclasses will pass false for the addPage argument, which means DO NOT add the page to the log manager during the execution of the constructor. The reason why a subclass would pass false is because they are overriding methods which are called during the addPage process and the overriding methods depend on field initialization which does not take place until after the super constructor returns. For example, a subclass which overrides getToolTip will likely want to pass false for the addPage argument.
| Method Detail |
public ContextMenu getContextMenu()
getContextMenu in interface ViewgetContextMenu in class AbstractViewprotected boolean checkLogOpen()
protected void setLogFileName(java.lang.String fn)
public void clearAll()
LogPage
clearAll in interface LogPageclearAll in class AbstractLogPagepublic void addMouseListener(java.awt.event.MouseListener listener)
AbstractLogPage
addMouseListener in interface LogPageaddMouseListener in class AbstractLogPagepublic void removeMouseListener(java.awt.event.MouseListener listener)
AbstractLogPage
removeMouseListener in interface LogPageremoveMouseListener in class AbstractLogPagepublic java.awt.Component getGUI()
View
public HelpInfo getHelpInfo()
getHelpInfo in interface HelpablegetHelpInfo in class AbstractViewpublic Controller getController()
ControllerProviderController associated with this view.
getController in interface ControllerProvidergetController in class AbstractLogPageprotected void logMsg(java.lang.Object msg)
AbstractLogPagemsg. Subclasses must override
this method instead of the log method. The log
method makes sure that the page is visible before calling this
method.
logMsg in class AbstractLogPagemsg - the message to display.protected boolean getWrapLines()
protected void setWrapLines(boolean wrap)
protected final java.lang.String getText()
protected void appendToTextComponent(java.lang.String msg,
int maxLogLines)
protected void deleteFromStartOfTextComponent(int linesToDelete,
int offset)
protected void replaceTextComponentDocument()
protected void clearTextComponent()
public void addHref(Href href)
public void addStyle(StyledMessage styledMessage)
|
Extension SDK | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.