|
||||||||||
| 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. |
protected boolean |
canClose()
method called to check if the view can be closed. |
protected void |
cleanUp()
method called when view is being closed to allow the view to do clean up or resets. |
void |
close()
close the view if allowed. |
abstract String |
getFrameTitle()
Gets the frame title. |
boolean |
isDocked()
determine if the view is docked. |
JFrame |
openInFrame()
Open the view in a frame. |
abstract void |
refresh()
Refresh. |
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 |
| Methods inherited from interface net.sf.borg.model.Model.Listener |
|---|
update |
| Field Detail |
|---|
static Image image
| Constructor Detail |
|---|
public DockableView()
| Method Detail |
|---|
protected void addModel(Model m)
m - the modelprotected boolean canClose()
protected void cleanUp()
public void close()
public abstract String getFrameTitle()
public boolean isDocked()
public JFrame openInFrame()
public abstract void refresh()
public void showView()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||