public static class WindowMoveListener.ToolkitListener extends WindowMoveListener
Modifier and Type | Class and Description |
---|---|
static class |
WindowMouseListener.ToolkitListenerHelper |
WindowMoveListener.ToolkitListener
Modifier and Type | Field and Description |
---|---|
protected java.awt.Component |
myContent |
protected static boolean |
ourIsResizing |
Constructor and Description |
---|
ToolkitListener(java.awt.Component content) |
Modifier and Type | Method and Description |
---|---|
void |
addTo(java.awt.Component comp) |
protected java.awt.Component |
getContent(java.awt.event.MouseEvent event)
Returns a window content which is used to find corresponding window and to set a cursor.
|
protected java.awt.Component |
getView(java.awt.Component component)
Finds a movable/resizable view for the specified content.
|
boolean |
isBusy()
Returns
true if a window is now moving/resizing. |
protected boolean |
isDisabled(java.awt.Component view) |
void |
mouseClicked(java.awt.event.MouseEvent event) |
void |
mouseDragged(java.awt.event.MouseEvent event) |
void |
mouseMoved(java.awt.event.MouseEvent event) |
void |
mousePressed(java.awt.event.MouseEvent event) |
void |
mouseReleased(java.awt.event.MouseEvent event) |
protected void |
notifyMoved() |
protected void |
notifyResized() |
void |
removeFrom(java.awt.Component comp) |
protected void |
setBounds(java.awt.Component comp,
java.awt.Rectangle bounds)
Note: default implementation takes Component.getTreeLock()
|
protected void |
setCursor(java.awt.Component content,
java.awt.Cursor cursor)
Sets the specified cursor for the specified content.
|
protected void |
setCursorType(int cursorType) |
protected final java.awt.Component myContent
protected static boolean ourIsResizing
public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent event)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class WindowMoveListener
public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class WindowMoveListener
protected void setCursor(java.awt.Component content, java.awt.Cursor cursor)
protected void setBounds(java.awt.Component comp, java.awt.Rectangle bounds)
public void addTo(java.awt.Component comp)
public void removeFrom(java.awt.Component comp)
protected boolean isDisabled(java.awt.Component view)
view
- the component to move/resizetrue
if the specified component cannot be moved/resized, or false
otherwiseprotected void setCursorType(int cursorType)
protected java.awt.Component getContent(java.awt.event.MouseEvent event)
protected java.awt.Component getView(java.awt.Component component)
public boolean isBusy()
true
if a window is now moving/resizing.protected void notifyMoved()
protected void notifyResized()