|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.borg.ui.calendar.Box
net.sf.borg.ui.calendar.ButtonBox
public abstract class ButtonBox
base class for a box that represents a clickable label on the calendar ui sub-classes must implement the onClick method. used for items such as the date and week buttons that let the user navigate to other views
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.borg.ui.calendar.Box |
---|
Box.Draggable |
Field Summary |
---|
Fields inherited from class net.sf.borg.ui.calendar.Box |
---|
bounds, clip, isSelected |
Constructor Summary | |
---|---|
ButtonBox(Date d,
String text,
Icon icon,
Rectangle bounds,
Rectangle clip)
constructor |
|
ButtonBox(Date d,
String text,
Icon icon,
Rectangle bounds,
Rectangle clip,
Color b)
constructor |
Method Summary | |
---|---|
int |
clicksToActivate()
how many clicks are required to activate this box - default is double-click |
void |
draw(Graphics2D g2,
Component comp)
draw the button box |
Date |
getDate()
get the date |
String |
getText()
get the box text |
String |
getToolTipText()
gets the tool tip text for this box |
Methods inherited from class net.sf.borg.ui.calendar.Box |
---|
delete, getBounds, getMenu, onClick, setBounds, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonBox(Date d, String text, Icon icon, Rectangle bounds, Rectangle clip)
d
- datetext
- label texticon
- icon or nullbounds
- boundsclip
- clippublic ButtonBox(Date d, String text, Icon icon, Rectangle bounds, Rectangle clip, Color b)
d
- datetext
- label texticon
- icon or nullbounds
- boundsclip
- clipb
- background colorMethod Detail |
---|
public Date getDate()
public void draw(Graphics2D g2, Component comp)
draw
in class Box
g2
- the Graphics2D to draw incomp
- that contains the Graphics2Dpublic String getText()
Box
getText
in class Box
public String getToolTipText()
Box
getToolTipText
in class Box
public int clicksToActivate()
Box
clicksToActivate
in class Box
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |