com.jmex.bui.headlessWindows
Class BDraggableWindow

java.lang.Object
  extended by com.jmex.bui.BComponent
      extended by com.jmex.bui.BContainer
          extended by com.jmex.bui.BWindow
              extended by com.jmex.bui.headlessWindows.BDraggableWindow
All Implemented Interfaces:
java.lang.Comparable<BWindow>
Direct Known Subclasses:
BTitledWindow

public class BDraggableWindow
extends BWindow

Since:
27Apr07
Author:
timo

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jmex.bui.BContainer
BContainer.ChildOp
 
Field Summary
static java.lang.String WINDOW_ACTIVATE_ACTION
           
 
Fields inherited from class com.jmex.bui.BWindow
_layer, _menuBar, _modal, _parentWindow, _root, _rootPanel, _savedFocus, _style
 
Fields inherited from class com.jmex.bui.BContainer
_children, _layout
 
Fields inherited from class com.jmex.bui.BComponent
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES
 
Constructor Summary
BDraggableWindow(BStyleSheet style, BLayoutManager layout)
           
BDraggableWindow(java.lang.String name, BStyleSheet style, BLayoutManager layout)
           
 
Method Summary
 boolean dispatchEvent(BEvent event)
          Instructs this component to process the supplied event.
protected  void fireAction(long when, int modifiers)
           
protected  void windowReleased(MouseEvent event)
          This method is called when the window is released.
 
Methods inherited from class com.jmex.bui.BWindow
center, compareTo, dismiss, getDefaultStyleClass, getLayer, getMenuBar, getParentWindow, getRootNode, getStyleSheet, gotFocus, invalidate, isAdded, isModal, isOverlay, pack, pack, requestFocus, setBounds, setLayer, setMenuBar, setModal, setParent, setParentWindow, setRootNode, shouldShadeBehind
 
Methods inherited from class com.jmex.bui.BContainer
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, getNextFocus, getPreviousFocus, layout, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setLayoutManager, setVisible, validate, wasAdded, wasRemoved
 
Methods inherited from class com.jmex.bui.BComponent
acceptsFocus, addListener, addListeners, applyDefaultStates, boundsToString, changeCursor, configureStyle, createTooltipComponent, emitEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getCursor, getFocusTarget, getHeight, getInsets, getLocation, getName, getNextFocus, getParent, getPreferredSize, getPreviousFocus, getProperty, getState, getStateCount, getStatePseudoClass, getStyleClass, getTooltipText, getWidth, getWindow, getX, getY, hasFocus, intersectScissorBox, isConsumeMouseEvents, isEnabled, isHoverEnabled, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeListener, render, renderBackground, renderBorder, requestFocus, restoreScissorState, setBackground, setConsumeMouseEvents, setCursor, setHoverEnabled, setLocation, setName, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleClass, setTooltipRelativeToMouse, setTooltipText, stateDidChange, updateCursor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WINDOW_ACTIVATE_ACTION

public static final java.lang.String WINDOW_ACTIVATE_ACTION
See Also:
Constant Field Values
Constructor Detail

BDraggableWindow

public BDraggableWindow(java.lang.String name,
                        BStyleSheet style,
                        BLayoutManager layout)

BDraggableWindow

public BDraggableWindow(BStyleSheet style,
                        BLayoutManager layout)
Method Detail

dispatchEvent

public boolean dispatchEvent(BEvent event)
Description copied from class: BComponent
Instructs this component to process the supplied event. If the event is not processed, it will be passed up to its parent component for processing. Derived classes should thus only call super.dispatchEvent for events that they did not "consume".

Overrides:
dispatchEvent in class BComponent
Returns:
true if this event was consumed, false if not.

fireAction

protected void fireAction(long when,
                          int modifiers)

windowReleased

protected void windowReleased(MouseEvent event)
This method is called when the window is released. It does nothing by default.

Parameters:
event - The mouse event generated when the window was released.


Copyright © 2011 Michael Bayne. All Rights Reserved.