com.jmex.bui.headlessWindows
Class BTitledWindow
java.lang.Object
com.jmex.bui.BComponent
com.jmex.bui.BContainer
com.jmex.bui.BWindow
com.jmex.bui.headlessWindows.BDraggableWindow
com.jmex.bui.headlessWindows.BTitledWindow
- All Implemented Interfaces:
- java.lang.Comparable<BWindow>
- Direct Known Subclasses:
- BDialogBox
public class BTitledWindow
- extends BDraggableWindow
- Since:
- 27Apr07
- Author:
- timo
| 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 |
| 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, 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 |
WINDOW_MINIMIZE_ACTION
public static final java.lang.String WINDOW_MINIMIZE_ACTION
- See Also:
- Constant Field Values
WINDOW_MAXIMIZE_ACTION
public static final java.lang.String WINDOW_MAXIMIZE_ACTION
- See Also:
- Constant Field Values
WINDOW_CLOSE_ACTION
public static final java.lang.String WINDOW_CLOSE_ACTION
- See Also:
- Constant Field Values
BTitledWindow
public BTitledWindow(java.lang.String name,
BTitleBar titleBar,
BStatusBar statusBar,
BStyleSheet style)
addListener
public void addListener(ComponentListener listener)
- Description copied from class:
BComponent
- Adds a listener to this component. The listener will be notified when events of the appropriate type are
dispatched on this component.
- Overrides:
addListener in class BComponent
getMinimizedSize
public Dimension getMinimizedSize()
setMinimizedSize
public void setMinimizedSize(Dimension _minimizedSize)
setMinimizedSize
public void setMinimizedSize(int width,
int height)
setMaximizedSize
public void setMaximizedSize(int width,
int height)
getMaximizedSize
public Dimension getMaximizedSize()
getComponentArea
public BContainer getComponentArea()
- The component area of a window is the part of the window underneath the title bar.
It is analogue to the Swing window's content pane.
- Returns:
- The container representing the window's component area.
setComponentArea
public void setComponentArea(BContainer compoenentArea)
getWindowState
public BTitledWindow.WindowState getWindowState()
setWindowState
public void setWindowState(BTitledWindow.WindowState _windowState)
maximize
public void maximize(Dimension size)
minimize
public void minimize()
restoreSize
public void restoreSize()
- Restores the size of the BTitledWindow if it is maximized or minimized.
windowReleased
protected void windowReleased(MouseEvent event)
- Description copied from class:
BDraggableWindow
- This method is called when the window is released. It does nothing by default.
- Overrides:
windowReleased in class BDraggableWindow
- Parameters:
event - The mouse event generated when the window was released.
getMaximizedStyleClass
public java.lang.String getMaximizedStyleClass()
setMaximizedStyleClass
public void setMaximizedStyleClass(java.lang.String maximizedStyleClass)
getMinimizedStyleClass
public java.lang.String getMinimizedStyleClass()
setMinimizedStyleClass
public void setMinimizedStyleClass(java.lang.String minimizedStyleClass)
Copyright © 2011 Michael Bayne.
All Rights Reserved.