|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.atunes.gui.dockableView.DockableWindow
public abstract class DockableWindow
The Class DockableWindow.
| Field Summary | |
|---|---|
protected javax.swing.JPanel |
container
The container. |
protected static int |
DOCKABLE_BOUNDS
The Constant DOCKABLE_BOUNDS. |
protected javax.swing.JPanel |
eastPanel
The east panel. |
protected java.awt.Window |
frame
The frame. |
protected int |
height
The height. |
protected boolean |
hidden
The hidden. |
protected DockFramePositionListener |
listener
The listener. |
protected java.awt.Point |
location
The location. |
protected javax.swing.JPopupMenu |
menu
The menu. |
protected javax.swing.JPanel |
nePanel
The ne panel. |
protected javax.swing.JPanel |
northPanel
The north panel. |
protected javax.swing.JPanel |
nwPanel
The nw panel. |
protected javax.swing.JPanel |
panel
The panel. |
protected java.awt.event.MouseEvent |
pressed
The pressed. |
protected static int |
RESIZABLE_BORDER
The Constant RESIZABLE_BORDER. |
protected javax.swing.JPanel |
sePanel
The se panel. |
protected javax.swing.JPanel |
southPanel
The south panel. |
protected javax.swing.JPanel |
swPanel
The sw panel. |
protected javax.swing.JLabel |
title
The title. |
protected javax.swing.JPanel |
titlePanel
The title panel. |
protected javax.swing.JPanel |
topBar
The top bar. |
protected javax.swing.JPanel |
westPanel
The west panel. |
| Constructor Summary | |
|---|---|
DockableWindow(DockFramePositionListener listener,
java.awt.Dimension minimumSize)
Instantiates a new dockable window. |
|
| Method Summary | |
|---|---|
void |
addContent(javax.swing.JPanel p)
Adds the content. |
protected void |
addNorthResizableBorder()
Adds the north resizable border. |
protected void |
addResizableBorders()
Adds the resizable borders. |
java.awt.Rectangle |
getBounds()
Gets the bounds. |
java.awt.Rectangle |
getInsideBounds()
Gets the inside bounds. |
java.awt.Point |
getLocation()
Gets the location. |
java.awt.Rectangle |
getOutsideBounds()
Gets the outside bounds. |
boolean |
isHidden()
Checks if is hidden. |
boolean |
isVisible()
Checks if is visible. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent me)
|
void |
mouseEntered(java.awt.event.MouseEvent arg0)
|
void |
mouseExited(java.awt.event.MouseEvent arg0)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setBackground(java.awt.Color c)
Sets the background. |
abstract void |
setDefaultCloseOperation(int op)
Sets the default close operation. |
protected void |
setHidden(boolean value)
Sets the hidden. |
abstract void |
setIcon(java.awt.Image i)
Sets an icon to window. |
void |
setLocation(int x,
int y)
Sets the location. |
abstract void |
setLocationRelativeTo(java.awt.Component c)
Sets the location relative to. |
void |
setMenu(javax.swing.JPopupMenu menu)
Sets the menu. |
abstract void |
setTitle(java.lang.String s)
Sets the title. |
void |
setTitleBarBackground(java.awt.Color c)
Sets the title bar background. |
void |
setVisible(boolean visible)
Sets the visible. |
void |
show()
Show. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int RESIZABLE_BORDER
protected static final int DOCKABLE_BOUNDS
protected java.awt.Point location
protected java.awt.event.MouseEvent pressed
protected javax.swing.JPanel container
protected java.awt.Window frame
protected javax.swing.JPanel panel
protected javax.swing.JLabel title
protected javax.swing.JPanel topBar
protected DockFramePositionListener listener
protected boolean hidden
protected int height
protected javax.swing.JPanel northPanel
protected javax.swing.JPanel nePanel
protected javax.swing.JPanel nwPanel
protected javax.swing.JPanel eastPanel
protected javax.swing.JPanel westPanel
protected javax.swing.JPanel southPanel
protected javax.swing.JPanel sePanel
protected javax.swing.JPanel swPanel
protected javax.swing.JPanel titlePanel
protected javax.swing.JPopupMenu menu
| Constructor Detail |
|---|
public DockableWindow(DockFramePositionListener listener,
java.awt.Dimension minimumSize)
listener - the listenerminimumSize - the minimum size| Method Detail |
|---|
public void addContent(javax.swing.JPanel p)
p - the pprotected void addNorthResizableBorder()
protected void addResizableBorders()
public java.awt.Rectangle getBounds()
public java.awt.Rectangle getInsideBounds()
public java.awt.Point getLocation()
public java.awt.Rectangle getOutsideBounds()
public boolean isHidden()
public boolean isVisible()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseEntered(java.awt.event.MouseEvent arg0)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent arg0)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void setBackground(java.awt.Color c)
c - the new backgroundpublic abstract void setDefaultCloseOperation(int op)
op - the new default close operationprotected void setHidden(boolean value)
value - the new hiddenpublic abstract void setIcon(java.awt.Image i)
i - the i
public void setLocation(int x,
int y)
x - the xy - the ypublic abstract void setLocationRelativeTo(java.awt.Component c)
c - the new location relative topublic void setMenu(javax.swing.JPopupMenu menu)
menu - the new menupublic abstract void setTitle(java.lang.String s)
s - the new titlepublic void setTitleBarBackground(java.awt.Color c)
c - the new title bar backgroundpublic void setVisible(boolean visible)
visible - the new visiblepublic void show()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||