|
Extension SDK | |||||||||
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 | |
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 the 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 . |
Method Summary | |
void |
addMouseListener(java.awt.event.MouseListener listener)
This implemenation does nothing. |
protected boolean |
checkLogOpen()
|
void |
clearAll()
Clear all currently displayed messages. |
ContextMenu |
getContextMenu()
Gets the ContextMenu object, if any, managed by this instance. |
Controller |
getController()
Gets the Controller associated with this view. |
java.awt.Component |
getGUI()
Gets the view's root graphical user interface component |
HelpInfo |
getHelpInfo()
|
protected void |
logMsg(java.lang.Object msg)
Display the specified msg . |
void |
removeMouseListener(java.awt.event.MouseListener listener)
This implemenation does nothing. |
protected void |
setLogFileName(java.lang.String fn)
|
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, updateTitle |
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, getId, getSelection, getToolbar, removeViewListener, removeViewSelectionListener, updateTitle |
Methods inherited from interface oracle.ide.addin.Subview |
getContext, owner |
Field Detail |
public static final java.lang.String MESSAGE_PAGE_ID
Constructor Detail |
public MessagePage()
MessagePage
using the
message page view identifier.
protected MessagePage(ViewId viewId)
MessagePage
using the 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
.
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 Subview
getContextMenu
in class AbstractView
protected boolean checkLogOpen()
protected void setLogFileName(java.lang.String fn)
public void clearAll()
LogPage
clearAll
in interface LogPage
clearAll
in class AbstractLogPage
public void addMouseListener(java.awt.event.MouseListener listener)
AbstractLogPage
addMouseListener
in interface LogPage
addMouseListener
in class AbstractLogPage
public void removeMouseListener(java.awt.event.MouseListener listener)
AbstractLogPage
removeMouseListener
in interface LogPage
removeMouseListener
in class AbstractLogPage
public java.awt.Component getGUI()
Subview
public HelpInfo getHelpInfo()
getHelpInfo
in interface Helpable
getHelpInfo
in class AbstractView
public Controller getController()
Subview
Controller
associated with this view.
getController
in interface Subview
getController
in class AbstractLogPage
protected void logMsg(java.lang.Object msg)
AbstractLogPage
msg
. 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 AbstractLogPage
msg
- the message to display.
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.