|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JInternalFrame
unbbayes.util.extension.UnBBayesModule
public abstract class UnBBayesModule
Plugins for UnBBayes core is expected to extend this class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JInternalFrame |
---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, 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 | |
---|---|
UnBBayesModule()
It is equal to super("Plugin", true, true, true, true); |
|
UnBBayesModule(String title)
|
Method Summary | |
---|---|
JInternalFrame |
getInternalFrame()
Obtains the internal frame to be created by UnBBayes Swing core when a file listed within #getSupportedFileExtensions()
is opened by the user. |
String |
getModuleID()
|
abstract String |
getModuleName()
Obtains the name of this module. |
String |
getSavingMessage()
Obtains a message to be shown to user while saving a net editted by a window implementing this interface. |
String[] |
getSupportedFileExtensions(boolean isLoadOnly)
Deprecated. use BaseIO.getSupportedFileExtensions(boolean) from
IPersistenceAwareWindow.getIO() instead. |
String |
getSupportedFilesDescription(boolean isLoadOnly)
Deprecated. use BaseIO##getSupportedFilesDescription(boolean) from
IPersistenceAwareWindow.getIO() instead. |
UnBBayesFrame |
getUnbbayesFrame()
This is the top frame of UnBBayes, where all inner frames resides. |
abstract UnBBayesModule |
openFile(File file)
Loads a file into this window. |
void |
setModuleID(String moduleID)
|
void |
setName(String name)
|
void |
setUnbbayesFrame(UnBBayesFrame unbbayesFrame)
This is the top frame of UnBBayes, where all inner frames resides. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface unbbayes.gui.IPersistenceAwareWindow |
---|
getIO, getPersistingGraph |
Constructor Detail |
---|
public UnBBayesModule()
JInternalFrame
public UnBBayesModule(String title)
title
- JInternalFrame
Method Detail |
---|
public JInternalFrame getInternalFrame()
IPersistenceAwareWindow
#getSupportedFileExtensions()
is opened by the user.
getInternalFrame
in interface IPersistenceAwareWindow
JInternalFrame
public String getSavingMessage()
IPersistenceAwareWindow
getSavingMessage
in interface IPersistenceAwareWindow
public String[] getSupportedFileExtensions(boolean isLoadOnly)
BaseIO.getSupportedFileExtensions(boolean)
from
IPersistenceAwareWindow.getIO()
instead.
IPersistenceAwareWindow
getSupportedFileExtensions
in interface IPersistenceAwareWindow
isLoadOnly
- : if set to true, it should consider file extensions for file loading (input).
If set to false, it should consider both saving and loading. Note
that not every module/plugin can implement both loading and saving, and this parameter may separate such
special behaviors.
IPersistenceAwareWindow.getSupportedFileExtensions(boolean)
public String getSupportedFilesDescription(boolean isLoadOnly)
BaseIO##getSupportedFilesDescription(boolean)
from
IPersistenceAwareWindow.getIO()
instead.
getSupportedFilesDescription
in interface IPersistenceAwareWindow
isLoadOnly
- : if set to true, it should consider file extensions for file loading (input).
If set to false, it should consider both saving and loading. Note
that not every module/plugin can implement both loading and saving, and this parameter may separate such
special behaviors.IPersistenceAwareWindow.getSupportedFilesDescription(boolean)
public abstract String getModuleName()
public abstract UnBBayesModule openFile(File file) throws IOException
file
- : the file to be opened
IOException
IPersistenceAwareWindow#getSupportedFileExtensions()
,
IPersistenceAwareWindow.getIO()
,
BaseIO#supportsExtension(String)
public String getModuleID()
public void setModuleID(String moduleID)
moduleID
- the moduleID to setpublic UnBBayesFrame getUnbbayesFrame()
public void setUnbbayesFrame(UnBBayesFrame unbbayesFrame)
unbbayesFrame
- the unbbayesFrame to setpublic void setName(String name)
setName
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |