|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
uic.widgets.calendar.UICDatePicker.SpecialPopup
uic.widgets.calendar.UICDatePicker.MonthSelector
protected class UICDatePicker.MonthSelector
Component that can be placed on a JPopup to select a month.
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 | |
---|---|
UICDatePicker.MonthSelector()
Constructs a new MonthSelector |
Method Summary | |
---|---|
void |
addActionListener(ActionListener l)
Adds the specified listener to the actionListeners. |
protected void |
calculateSizes()
Calculates the colWidth, rowHeight and offsets. |
protected int |
getCol(int x)
Returns the column for the specified x-coordinate, or -1 if none. |
protected int |
getMaxStringWidth(String[] strings)
Returns the maximum string width for the strings in the specified String array |
protected int |
getMonth(int row,
int col)
Returns the month for the specified row and column, or -1 if out of range. |
protected String |
getMonthName(int row,
int col)
Returns the monthname for the specified row and column, or empty if out of range. |
Dimension |
getPreferredSize()
|
protected int |
getRow(int y)
Returns the row for the specified y-coordinate, or -1 if none. |
void |
mouseDownSlot(int x,
int y)
Handles the selectionchanges. |
void |
mouseReleasedSlot(int x,
int y)
Fires the month change event with the month under the mouse pointer. |
void |
paintComponent(Graphics g)
|
protected void |
paintString(Graphics g,
Rectangle2D.Double rect,
String string)
Paints the specified string centered in the specified rectangle on the specified graphics object. |
void |
sentMonthChangedEvent(int month)
Sent an event for month change to the listeners. |
Methods inherited from class uic.widgets.calendar.UICDatePicker.SpecialPopup |
---|
hidePopup, showPopup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UICDatePicker.MonthSelector()
Method Detail |
---|
protected void calculateSizes()
protected int getMaxStringWidth(String[] strings)
public void paintComponent(Graphics g)
paintComponent
in class JComponent
protected void paintString(Graphics g, Rectangle2D.Double rect, String string)
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public void mouseDownSlot(int x, int y)
public void mouseReleasedSlot(int x, int y)
public void sentMonthChangedEvent(int month)
public void addActionListener(ActionListener l)
protected int getRow(int y)
protected int getCol(int x)
protected int getMonth(int row, int col)
protected String getMonthName(int row, int col)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |