|
||||||||||
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 javax.swing.JComponent bibliothek.extension.gui.dock.theme.bubble.RoundDropDownButton
@ColorCodes(value={"action.dropdown","action.dropdown.enabled","action.dropdown.selected","action.dropdown.selected.enabled","action.dropdown.mouse.enabled","action.dropdown.mouse.selected.enabled","action.dropdown.pressed.enabled","action.dropdown.pressed.selected.enabled","action.dropdown.focus","action.dropdown.enabled.focus","action.dropdown.selected.focus","action.dropdown.selected.enabled.focus","action.dropdown.mouse.enabled.focus","action.dropdown.mouse.selected.enabled.focus","action.dropdown.pressed.enabled.focus","action.dropdown.pressed.selected.enabled.focus","action.dropdown.line","action.dropdown.line.enabled","action.dropdown.line.selected","action.dropdown.line.selected.enabled","action.dropdown.line.mouse.enabled","action.dropdown.line.mouse.selected.enabled","action.dropdown.line.pressed.enabled","action.dropdown.line.pressed.selected.enabled","action.dropdown.text","action.dropdown.text.enabled","action.dropdown.text.selected","action.dropdown.text.selected.enabled","action.dropdown.text.mouse.enabled","action.dropdown.text.mouse.selected.enabled","action.dropdown.text.pressed.enabled","action.dropdown.text.pressed.selected.enabled"}) public class RoundDropDownButton
A button which can be pressed by the user either to execute
a DockAction
or to show a popup-menu
with a selection of DockActions
. This button uses a
BasicDropDownButtonHandler
to manage its internal states.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
RoundDropDownButton(BasicDropDownButtonHandler handler,
Dockable dockable,
DockAction action)
Creates a new button |
Method Summary | |
---|---|
boolean |
contains(int x,
int y)
|
protected MiniButtonContent |
createButtonContent()
Creates the component painting the content of this button. |
void |
doLayout()
|
BasicDropDownButtonModel |
getModel()
|
Dimension |
getPreferredSize()
|
boolean |
overDropIcon(int x,
int y)
Tells whether the point x,y is over the icon that represents the drop-area. |
protected void |
paintComponent(Graphics g)
|
void |
setController(DockController controller)
Sets the controller of this element. |
void |
updateColors()
Updates the colors of the animation. |
void |
updateUI()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RoundDropDownButton(BasicDropDownButtonHandler handler, Dockable dockable, DockAction action)
handler
- a handler used to announce that this button is clickeddockable
- the element for which the action is shownaction
- the action that is shownMethod Detail |
---|
protected MiniButtonContent createButtonContent()
public void setController(DockController controller)
RoundButtonConnectable
setController
in interface RoundButtonConnectable
controller
- the controller, can be null
public BasicDropDownButtonModel getModel()
public void updateUI()
updateUI
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public void doLayout()
doLayout
in class Container
public boolean contains(int x, int y)
contains
in class JComponent
protected void paintComponent(Graphics g)
paintComponent
in class JComponent
public boolean overDropIcon(int x, int y)
x
- the x-coordinatey
- the y-coordinate
true
if pressing the mouse at that location would
open a popup menupublic void updateColors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |