|
||||||||||
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.JPanel
net.sf.borg.ui.DockableView
public abstract class DockableView
The Class DockableView is the base class for panels that can appear as stand-alone windows or tabs in the main view and can be docked/undocked at runtime.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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 | |
---|---|
(package private) static Image |
image
The icon for the title bar |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DockableView()
|
Method Summary | |
---|---|
protected void |
addModel(Model m)
register the view for model change callbacks |
abstract PrefName |
getFrameSizePref()
Gets the window size preference. |
abstract String |
getFrameTitle()
Gets the frame title. |
abstract JMenuBar |
getMenuForFrame()
Gets the menu for the frame. |
boolean |
isDocked()
determine if the view is docked |
JFrame |
openInFrame()
Open the view in a frame. |
abstract void |
refresh()
Called to notify Listener when the Model is changed. |
void |
remove()
|
void |
showView()
Shows the view as a docked tab or separate window, depending on the user options. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static Image image
Constructor Detail |
---|
public DockableView()
Method Detail |
---|
protected void addModel(Model m)
m
- the modelpublic void showView()
public abstract PrefName getFrameSizePref()
public abstract String getFrameTitle()
public abstract JMenuBar getMenuForFrame()
public boolean isDocked()
public JFrame openInFrame()
public abstract void refresh()
Model.Listener
refresh
in interface Model.Listener
public void remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |