|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Dialog javax.swing.JDialog com.alee.laf.rootpane.WebDialog com.alee.extended.window.WebPopOver
public class WebPopOver
Custom stylish pop-over dialog with a special corner that follows invoker component. It may also act as a simple dialog with custom styling if configured so.
WebDialog
,
WebPopupPainter
,
PopOverSourcePoint
,
PopOverDirection
,
PopOverAlignment
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
javax.swing.JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
java.awt.Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected boolean |
attached
Whether WebPopOver is attached to invoker component or not. |
protected WebPanel |
container
WebPopOver components container. |
protected PopOverDirection |
currentDirection
Current display direction. |
protected boolean |
movable
Whether WebPopOver should be movable or not. |
protected java.util.List<PopOverListener> |
popOverListeners
WebPopOver state listeners. |
protected PopOverSourcePoint |
popOverSourcePoint
WebPopOver display source point. |
protected PopOverAlignment |
preferredAlignment
Preferred WebPopOver alignment relative to display source point. |
protected PopOverDirection |
preferredDirection
Preferred direction in which WebPopOver should be displayed. |
Fields inherited from class com.alee.laf.rootpane.WebDialog |
---|
closeOnFocusLoss, focusTracker |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
WebPopOver()
Constructs new WebPopOver dialog. |
|
WebPopOver(java.awt.Component owner)
Constructs new WebPopOver dialog. |
|
WebPopOver(java.awt.Component owner,
java.lang.String title)
Constructs new WebPopOver dialog. |
|
WebPopOver(java.awt.Dialog owner)
Constructs new WebPopOver dialog. |
|
WebPopOver(java.awt.Dialog owner,
java.lang.String title)
Constructs new WebPopOver dialog. |
|
WebPopOver(java.awt.Frame owner)
Constructs new WebPopOver dialog. |
|
WebPopOver(java.awt.Frame owner,
java.lang.String title)
Constructs new WebPopOver dialog. |
|
WebPopOver(java.awt.Window owner)
Constructs new WebPopOver dialog. |
|
WebPopOver(java.awt.Window owner,
java.lang.String title)
Constructs new WebPopOver dialog. |
Method Summary | |
---|---|
void |
addPopOverListener(PopOverListener listener)
Adds pop-over listener. |
protected java.awt.Point |
checkBottomCollision(java.awt.Point location,
java.awt.Dimension ps,
java.awt.Rectangle screenBounds)
Checks whether WebPopOver will collide with bottom screen border and modifies location accordingly. |
protected java.awt.Point |
checkLeftCollision(java.awt.Point location,
java.awt.Rectangle screenBounds)
Checks whether WebPopOver will collide with left screen border and modifies location accordingly. |
protected java.awt.Point |
checkRightCollision(java.awt.Point location,
java.awt.Dimension ps,
java.awt.Rectangle screenBounds)
Checks whether WebPopOver will collide with right screen border and modifies location accordingly. |
protected java.awt.Point |
checkTopCollision(java.awt.Point location,
java.awt.Rectangle screenBounds)
Checks whether WebPopOver will collide with top screen border and modifies location accordingly. |
void |
firePopOverClosed()
Informs that this pop-over was closed. |
void |
firePopOverDetached()
Informs that this pop-over was detached from invoker component. |
protected PopOverDirection |
getActualDirection(java.awt.Rectangle ib,
boolean ltr,
int cw,
java.awt.Dimension ps,
java.awt.Rectangle screenBounds)
Returns actual direction depending on preferred WebPopOver direction, its sizes and source point. |
protected java.awt.Point |
getActualLocation(java.awt.Rectangle ib,
boolean ltr,
int round,
int cw,
java.awt.Dimension ps,
java.awt.Rectangle screenBounds,
PopOverDirection actualDirection)
Returns actual WebPopOver location. |
protected java.awt.Point |
getActualSourcePoint(java.awt.Rectangle ib,
boolean ltr,
PopOverDirection direction)
Returns actual source point depending on WebPopOver direction and invoker component location on screen. |
java.awt.Color |
getBorderColor()
Returns popup menu border color. |
java.awt.Color |
getContentBackground()
Returns WebPopOver content background color. |
protected int |
getCornerAlignment()
Returns dropdown corner alignment. |
protected int |
getCornerSide()
Returns dropdown style corner side. |
int |
getCornerWidth()
Returns popup menu dropdown style corner width. |
PopOverDirection |
getCurrentDirection()
Returns current display direction. |
java.awt.Insets |
getMargin()
Returns WebPopOver container margin. |
WebPopOverPainter |
getPainter()
Returns base WebPopOver painter. |
PopOverSourcePoint |
getPopOverSourcePoint()
Returns popup display source point. |
protected PopupStyle |
getPopupStyle()
Returns popup style. |
PopOverDirection |
getPreferredDirection()
Returns preferred direction in which WebPopOver should be displayed. |
protected int |
getRelativeCorner()
Returns relative dropdown corner position. |
protected int |
getRelativeCorner(java.awt.Rectangle ib,
PopOverDirection actualDirection,
java.awt.Point actualLocation)
Returns relative corner position. |
int |
getRound()
Returns popup menu border corners rounding. |
float |
getShadeTransparency()
Returns popup menu shade transparency. |
int |
getShadeWidth()
Returns popup menu shade width. |
java.lang.String |
getStyleId()
Returns component style ID. |
float |
getTransparency()
Returns popup menu background transparency. |
protected void |
initialize()
WebPopOver settings initialization. |
protected void |
installPopOverLocationUpdater(java.awt.Component invoker,
DataProvider<java.awt.Rectangle> invokerBoundsProvider)
Installs listeners to update WebPopOver location. |
boolean |
isMovable()
Returns whether this WebPopOver is movable or not. |
boolean |
isPopOverFocused()
Returns whether this WebPopOver is focus owner or not. |
void |
removePopOverListener(PopOverListener listener)
Removes pop-over listener. |
void |
setBorderColor(java.awt.Color color)
Sets popup menu border color. |
void |
setContentBackground(java.awt.Color color)
Sets WebPopOver content background color. |
protected void |
setCornerAlignment(int cornerAlignment)
Sets dropdown corner alignment. |
protected void |
setCornerSide(int cornerSide)
Sets dropdown style corner side. |
void |
setCornerWidth(int width)
Sets popup menu dropdown style corner width. |
void |
setCurrentDirection(PopOverDirection direction)
Sets current display direction. |
WebPopOver |
setMargin(java.awt.Insets margin)
Sets WebPopOver container margin. |
WebPopOver |
setMargin(int margin)
Sets WebPopOver container margin. |
WebPopOver |
setMargin(int top,
int left,
int bottom,
int right)
Sets WebPopOver container margin. |
void |
setMovable(boolean movable)
Sets whether this WebPopOver should be movable or not. |
void |
setPainter(WebPopOverPainter painter)
Sets base WebPopOver painter. |
void |
setPopOverFocused(boolean focused)
Sets whether this WebPopOver is focus owner or not. |
void |
setPopOverSourcePoint(PopOverSourcePoint popOverSourcePoint)
Sets popup display source point. |
protected void |
setPopupStyle(PopupStyle style)
Sets popup style. |
void |
setPreferredDirection(PopOverDirection direction)
Sets preferred direction in which WebPopOver should be displayed. |
protected void |
setRelativeCorner(int relativeCorner)
Sets relative dropdown corner position. |
void |
setRound(int round)
Sets popup menu border corners rounding. |
void |
setShadeTransparency(float transparency)
Sets popup menu shade transparency. |
void |
setShadeWidth(int width)
Sets popup menu shade width. |
void |
setStyleId(java.lang.String id)
Sets custom component style ID. |
void |
setTransparency(float transparency)
Sets popup menu background transparency. |
WebPopOver |
show(java.awt.Component invoker)
Displays WebPopOver attached to the invoker component and faced to preferred direction. |
WebPopOver |
show(java.awt.Component invoker,
DataProvider<java.awt.Rectangle> boundsProvider)
Displays WebPopOver attached to the invoker component area and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
DataProvider<java.awt.Rectangle> boundsProvider,
PopOverDirection direction)
Displays WebPopOver attached to the invoker component area and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
DataProvider<java.awt.Rectangle> boundsProvider,
PopOverDirection direction,
PopOverAlignment alignment)
Displays WebPopOver attached to the invoker component area and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
int x,
int y)
Displays WebPopOver attached to the invoker component coordinates and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
int x,
int y,
int w,
int h)
Displays WebPopOver attached to the invoker component area and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
int x,
int y,
int w,
int h,
PopOverDirection direction)
Displays WebPopOver attached to the invoker component area and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
int x,
int y,
int w,
int h,
PopOverDirection direction,
PopOverAlignment alignment)
Displays WebPopOver attached to the invoker component area and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
int x,
int y,
PopOverDirection direction)
Displays WebPopOver attached to the invoker component coordinates and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
int x,
int y,
PopOverDirection direction,
PopOverAlignment alignment)
Displays WebPopOver attached to the invoker component coordinates and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
PopOverDirection direction)
Displays WebPopOver attached to the invoker component and faced to specified direction. |
WebPopOver |
show(java.awt.Component invoker,
PopOverDirection direction,
PopOverAlignment alignment)
Displays WebPopOver attached to the invoker component and faced to specified direction. |
WebPopOver |
show(int x,
int y)
Displays unattached WebPopOver at the specified location. |
WebPopOver |
show(java.awt.Point location)
Displays unattached WebPopOver at the specified location. |
WebPopOver |
show(PopOverLocation location)
Displays unattached WebPopOver at the specified screen location. |
protected void |
updatePopOverLocation(java.awt.Component invoker)
Updates WebPopOver location on screen. |
protected void |
updatePopOverLocation(java.awt.Component invoker,
DataProvider<java.awt.Rectangle> invokerBoundsProvider)
Updates WebPopOver location on screen. |
protected void |
updatePopOverLocation(java.awt.Rectangle invokerBounds)
Updates WebPopOver location on screen. |
Methods inherited from class javax.swing.JDialog |
---|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.awt.Window |
---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean movable
protected PopOverSourcePoint popOverSourcePoint
protected WebPanel container
protected boolean attached
protected PopOverDirection preferredDirection
protected PopOverDirection currentDirection
protected PopOverAlignment preferredAlignment
protected java.util.List<PopOverListener> popOverListeners
Constructor Detail |
---|
public WebPopOver()
public WebPopOver(java.awt.Frame owner)
owner
- dialog owner framepublic WebPopOver(java.awt.Frame owner, java.lang.String title)
owner
- dialog owner frametitle
- dialog title (might not be displayed depending on styling)public WebPopOver(java.awt.Dialog owner)
owner
- dialog owner dialogpublic WebPopOver(java.awt.Dialog owner, java.lang.String title)
owner
- dialog owner dialogtitle
- dialog title (might not be displayed depending on styling)public WebPopOver(java.awt.Component owner)
owner
- dialog owner componentpublic WebPopOver(java.awt.Component owner, java.lang.String title)
owner
- dialog owner componenttitle
- dialog title (might not be displayed depending on styling)public WebPopOver(java.awt.Window owner)
owner
- dialog owner windowpublic WebPopOver(java.awt.Window owner, java.lang.String title)
owner
- dialog owner windowtitle
- dialog title (might not be displayed depending on styling)Method Detail |
---|
protected void initialize()
initialize
in class WebDialog
public java.lang.String getStyleId()
getStyleId
in interface Styleable
public void setStyleId(java.lang.String id)
setStyleId
in interface Styleable
id
- custom component style IDpublic void setContentBackground(java.awt.Color color)
color
- new content background colorpublic java.awt.Color getContentBackground()
public java.awt.Insets getMargin()
public WebPopOver setMargin(java.awt.Insets margin)
margin
- margin insets
public WebPopOver setMargin(int top, int left, int bottom, int right)
top
- top marginleft
- left marginbottom
- bottom marginright
- right margin
public WebPopOver setMargin(int margin)
margin
- sides margin
public WebPopOverPainter getPainter()
public void setPainter(WebPopOverPainter painter)
painter
- base WebPopOver painterpublic boolean isMovable()
public void setMovable(boolean movable)
movable
- whether this WebPopOver should be movable or notpublic PopOverSourcePoint getPopOverSourcePoint()
public void setPopOverSourcePoint(PopOverSourcePoint popOverSourcePoint)
popOverSourcePoint
- popup display source pointpublic java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color color)
color
- new popup menu border colorpublic int getRound()
getRound
in class WebDialog
public void setRound(int round)
setRound
in class WebDialog
round
- new popup menu border corners roundingpublic int getShadeWidth()
getShadeWidth
in class WebDialog
public void setShadeWidth(int width)
setShadeWidth
in class WebDialog
width
- new popup menu shade widthpublic float getShadeTransparency()
public void setShadeTransparency(float transparency)
transparency
- new popup menu shade transparencypublic int getCornerWidth()
public void setCornerWidth(int width)
width
- popup menu dropdown style corner widthpublic float getTransparency()
public void setTransparency(float transparency)
transparency
- popup menu background transparencyprotected PopupStyle getPopupStyle()
protected void setPopupStyle(PopupStyle style)
style
- new popup styleprotected int getCornerSide()
protected void setCornerSide(int cornerSide)
cornerSide
- dropdown style corner sideprotected int getRelativeCorner()
protected void setRelativeCorner(int relativeCorner)
relativeCorner
- relative dropdown corner positionprotected int getCornerAlignment()
protected void setCornerAlignment(int cornerAlignment)
cornerAlignment
- dropdown corner alignmentpublic boolean isPopOverFocused()
public void setPopOverFocused(boolean focused)
focused
- whether this WebPopOver is focus owner or notpublic WebPopOver show(PopOverLocation location)
location
- WebPopOver location on screen
public WebPopOver show(java.awt.Point location)
location
- WebPopOver location
public WebPopOver show(int x, int y)
x
- WebPopOver X locationy
- WebPopOver Y location
public WebPopOver show(java.awt.Component invoker)
invoker
- invoker component
public WebPopOver show(java.awt.Component invoker, PopOverDirection direction)
invoker
- invoker componentdirection
- preferred display direction
public WebPopOver show(java.awt.Component invoker, PopOverDirection direction, PopOverAlignment alignment)
invoker
- invoker componentdirection
- preferred display directionalignment
- preferred display alignment
public WebPopOver show(java.awt.Component invoker, int x, int y)
invoker
- invoker componentx
- source area X coordinate in invoker's component coordinate systemy
- source area Y coordinate in invoker's component coordinate system
public WebPopOver show(java.awt.Component invoker, int x, int y, PopOverDirection direction)
invoker
- invoker componentx
- source area X coordinate in invoker's component coordinate systemy
- source area Y coordinate in invoker's component coordinate systemdirection
- preferred display direction
public WebPopOver show(java.awt.Component invoker, int x, int y, PopOverDirection direction, PopOverAlignment alignment)
invoker
- invoker componentx
- source area X coordinate in invoker's component coordinate systemy
- source area Y coordinate in invoker's component coordinate systemdirection
- preferred display directionalignment
- preferred display alignment
public WebPopOver show(java.awt.Component invoker, int x, int y, int w, int h)
invoker
- invoker componentx
- source area X coordinate in invoker's component coordinate systemy
- source area Y coordinate in invoker's component coordinate systemw
- source area widthh
- source area height
public WebPopOver show(java.awt.Component invoker, int x, int y, int w, int h, PopOverDirection direction)
invoker
- invoker componentx
- source area X coordinate in invoker's component coordinate systemy
- source area Y coordinate in invoker's component coordinate systemw
- source area widthh
- source area heightdirection
- preferred display direction
public WebPopOver show(java.awt.Component invoker, int x, int y, int w, int h, PopOverDirection direction, PopOverAlignment alignment)
invoker
- invoker componentx
- source area X coordinate in invoker's component coordinate systemy
- source area Y coordinate in invoker's component coordinate systemw
- source area widthh
- source area heightdirection
- preferred display directionalignment
- preferred display alignment
public WebPopOver show(java.awt.Component invoker, DataProvider<java.awt.Rectangle> boundsProvider)
invoker
- invoker componentboundsProvider
- source area provider
public WebPopOver show(java.awt.Component invoker, DataProvider<java.awt.Rectangle> boundsProvider, PopOverDirection direction)
invoker
- invoker componentboundsProvider
- source area providerdirection
- preferred display direction
public WebPopOver show(java.awt.Component invoker, DataProvider<java.awt.Rectangle> boundsProvider, PopOverDirection direction, PopOverAlignment alignment)
invoker
- invoker componentboundsProvider
- source area providerdirection
- preferred display directionalignment
- preferred display alignment
protected void updatePopOverLocation(java.awt.Component invoker, DataProvider<java.awt.Rectangle> invokerBoundsProvider)
invoker
- invoker componentprotected void updatePopOverLocation(java.awt.Component invoker)
invoker
- invoker componentprotected void updatePopOverLocation(java.awt.Rectangle invokerBounds)
invokerBounds
- invoker component bounds on screenprotected void installPopOverLocationUpdater(java.awt.Component invoker, DataProvider<java.awt.Rectangle> invokerBoundsProvider)
invoker
- invoker componentprotected int getRelativeCorner(java.awt.Rectangle ib, PopOverDirection actualDirection, java.awt.Point actualLocation)
ib
- invoker component bounds on screenactualDirection
- actual WebPopOver directionactualLocation
- actual WebPopOver location
protected java.awt.Point getActualLocation(java.awt.Rectangle ib, boolean ltr, int round, int cw, java.awt.Dimension ps, java.awt.Rectangle screenBounds, PopOverDirection actualDirection)
ib
- invoker component bounds on screenltr
- whether LTR orientation is active or notround
- corners roundcw
- corner widthps
- WebPopOver size without shade widthsscreenBounds
- screen boundsactualDirection
- actual WebPopOver direction
protected java.awt.Point checkTopCollision(java.awt.Point location, java.awt.Rectangle screenBounds)
location
- approximate WebPopOver locationscreenBounds
- screen bounds
protected java.awt.Point checkBottomCollision(java.awt.Point location, java.awt.Dimension ps, java.awt.Rectangle screenBounds)
location
- approximate WebPopOver locationps
- WebPopOver size without shade widthsscreenBounds
- screen bounds
protected java.awt.Point checkLeftCollision(java.awt.Point location, java.awt.Rectangle screenBounds)
location
- approximate WebPopOver locationscreenBounds
- screen bounds
protected java.awt.Point checkRightCollision(java.awt.Point location, java.awt.Dimension ps, java.awt.Rectangle screenBounds)
location
- approximate WebPopOver locationps
- WebPopOver size without shade widthsscreenBounds
- screen bounds
protected PopOverDirection getActualDirection(java.awt.Rectangle ib, boolean ltr, int cw, java.awt.Dimension ps, java.awt.Rectangle screenBounds)
ib
- invoker component bounds on screenltr
- whether LTR orientation is active or notcw
- corner withps
- WebPopOver size without shade widthsscreenBounds
- screen bounds
protected java.awt.Point getActualSourcePoint(java.awt.Rectangle ib, boolean ltr, PopOverDirection direction)
ib
- invoker component bounds on screenltr
- whether LTR orientation is active or notdirection
- WebPopOver direction @return actual source pointpublic PopOverDirection getPreferredDirection()
public void setPreferredDirection(PopOverDirection direction)
direction
- preferred direction in which WebPopOver should be displayedpublic PopOverDirection getCurrentDirection()
public void setCurrentDirection(PopOverDirection direction)
direction
- current display directionpublic void addPopOverListener(PopOverListener listener)
listener
- pop-over listenerpublic void removePopOverListener(PopOverListener listener)
listener
- pop-over listenerpublic void firePopOverDetached()
public void firePopOverClosed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |