|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.log.LogManager
oracle.ide.log.AbstractLogManager
public abstract class AbstractLogManager
The AbstractLogManager class provides the basic support
for managing and showing a log page's context menu. LogManagers
should extend this class in order to get the default context menu support.
The default context menu provides three menu items: Close, Clear,
and Open File.
| Field Summary | |
|---|---|
static int |
CLEAR_LOG_CMD_ID
Clear command identifier. |
static int |
CLOSE_ALL_LOGS_CMD_ID
Close all logs command identifier. |
static int |
CLOSE_LOG_CMD_ID
Close command identifier. |
static int |
CLOSE_OTHER_LOGS_CMD_ID
Close other logs command identifier. |
static int |
OPEN_FILE_CMD_ID
Open file command identifier. |
| Fields inherited from interface oracle.ide.controller.Controller |
|---|
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED |
| Constructor Summary | |
|---|---|
AbstractLogManager()
|
|
| Method Summary | |
|---|---|
void |
addPage(LogPage page)
Classes that extend the AbstractLogManager class should
override this method from where they should call this method to
install the appropriate mouse listener on the specified page. |
protected Context |
getContext(java.util.EventObject event)
Classes that extend the AbstractLogManager class should
override this method in order to return the appropriate context. |
ContextMenu |
getContextMenu()
Get the ContextMenu. |
protected java.util.List |
getLogRecognizers()
Gets the list of registered LogRecognizers |
int |
getPageCount()
Concrete implementations must override this method and return the number of opened pages. |
LogPage[] |
getPages()
Concrete implementations must override this method and return the list of opened pages. |
protected void |
installContextMenuListener()
The installContextMenuListener method adds a
ContextMenuListener to the ContextMenu. |
protected void |
installMouseListener(LogPage page)
The installMouseListener method adds a
MouseListener to the specified LogPage. |
protected boolean |
isHeadless()
|
void |
registerLogRecognizer(LogRecognizer logRecognizer)
Register a LogRecognizer Registered LogRecognizers
determine what files can be opened in the log window and define
what class will be used to present the data from the file. |
void |
removePage(LogPage page)
Classes that extend the AbstractLogManager class should
override this method from where they should call this method to
install the remove any mouse listener installed on the specified
page |
protected void |
triggerPopup(java.awt.event.MouseEvent e)
The triggerPopup method is called from the menu
listener. |
void |
unregisterLogRecognizer(LogRecognizer logRecognizer)
Unregister a LogRecognizer. |
| Methods inherited from class oracle.ide.log.LogManager |
|---|
getIdeLogWindow, getLogManager, getLogWindow, getMsgPage, getSelectedPage, hideLog, isLogVisible, setLogManager, showLog, shutdown, toggleLog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.ide.controller.Controller |
|---|
handleEvent, update |
| Field Detail |
|---|
public static final int CLOSE_LOG_CMD_ID
public static final int CLEAR_LOG_CMD_ID
public static final int CLOSE_OTHER_LOGS_CMD_ID
public static final int CLOSE_ALL_LOGS_CMD_ID
public static final int OPEN_FILE_CMD_ID
| Constructor Detail |
|---|
public AbstractLogManager()
| Method Detail |
|---|
public void addPage(LogPage page)
AbstractLogManager class should
override this method from where they should call this method to
install the appropriate mouse listener on the specified page.
Installing the mouse listener is necessary for popping up the context
menu when the user clicks on the page.
addPage in class LogManagerpage - the page to add.public void removePage(LogPage page)
AbstractLogManager class should
override this method from where they should call this method to
install the remove any mouse listener installed on the specified
page
removePage in class LogManagerpage - the page to removed.public ContextMenu getContextMenu()
LogManagerContextMenu. In general, subclasses should get the
context menu to add custom menu items.
getContextMenu in class LogManagerpublic void registerLogRecognizer(LogRecognizer logRecognizer)
LogManagerLogRecognizer Registered LogRecognizers
determine what files can be opened in the log window and define
what class will be used to present the data from the file.
registerLogRecognizer in class LogManagerlogRecognizer - to registerpublic void unregisterLogRecognizer(LogRecognizer logRecognizer)
LogManagerLogRecognizer.
unregisterLogRecognizer in class LogManagerlogRecognizer - to unregisterpublic int getPageCount()
getPageCount in class LogManagerpublic LogPage[] getPages()
getPages in class LogManagerprotected Context getContext(java.util.EventObject event)
AbstractLogManager class should
override this method in order to return the appropriate context.
This method is called just before the context menu is about to
be shown.
protected void triggerPopup(java.awt.event.MouseEvent e)
triggerPopup method is called from the menu
listener. It is responsible from popping up the context menu.
Just before popping up a context menu, a call is made to the
getContext(java.util.EventObject) method.
protected void installContextMenuListener()
installContextMenuListener method adds a
ContextMenuListener to the ContextMenu.
The listener adds the Close and Clear menu items to the context menu.
protected void installMouseListener(LogPage page)
installMouseListener method adds a
MouseListener to the specified LogPage.
The listener is reponsible for popping up the context menu when
the user clicks on the page.
protected java.util.List getLogRecognizers()
LogRecognizers
LogRecognizersprotected boolean isHeadless()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||