|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
com.blogofbug.swing.components.JCarouselMenu.UpDownButton
private class JCarouselMenu.UpDownButton extends JLabel
This class represents the up and down buttons that allow the scrolling through the menu when it is too big to fit in the avaiable space
| Field Summary | |
|---|---|
private boolean |
doPaint
True if they should be painted |
| Fields inherited from class JLabel | |
|---|---|
| CENTER, TOP, LEFT, BOTTOM, RIGHT, NORTH, NORTH_EAST, EAST, SOUTH_EAST, SOUTH, SOUTH_WEST, WEST, NORTH_WEST, HORIZONTAL, VERTICAL, LEADING, TRAILING, NEXT, PREVIOUS, WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT |
| Fields inherited from class JComponent | |
|---|---|
| WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT |
| Constructor Summary | |
JCarouselMenu.UpDownButton(String text)
Creates the up down button |
|
| Method Summary | |
|---|---|
void
|
mouseClicked(MouseEvent mouseEvent)
Listens for a mouse click and scroll up or down in the menu when it gets one |
void
|
mouseEntered(MouseEvent mouseEvent)
Don't care |
void
|
mouseExited(MouseEvent mouseEvent)
Don't care |
void
|
mousePressed(MouseEvent mouseEvent)
Don't care |
void
|
mouseReleased(MouseEvent mouseEvent)
Don't care |
void
|
paintComponent(Graphics g)
Paint the component |
void
|
setDoPaint(boolean shouldPaint)
Controls if the button should paint itself or not |
| Field Detail |
|---|
private boolean doPaint
| Constructor Detail |
|---|
public JCarouselMenu.UpDownButton(String text)
text - Test, ignored
| Method Detail |
|---|
public void mouseClicked(MouseEvent mouseEvent)
mouseEvent - The mouse event
public void mouseEntered(MouseEvent mouseEvent)
mouseEvent - The mouse event
public void mouseExited(MouseEvent mouseEvent)
mouseEvent - The mouse event
public void mousePressed(MouseEvent mouseEvent)
mouseEvent - The mouse event
public void mouseReleased(MouseEvent mouseEvent)
mouseEvent - The mouse event
public void paintComponent(Graphics g)
g - The graphics context
public void setDoPaint(boolean shouldPaint)
shouldPaint - True if it should, false if it shouldn't
Groovy Documentation