|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.gui.components.general.ComponentBase
fi.hut.tml.xsmiles.gui.components.swing.SwingStylableComponent
fi.hut.tml.xsmiles.gui.components.swing.SwingCalendar
A calender control for swing
| Nested Class Summary | |
class |
SwingCalendar.Popup
|
| Field Summary | |
protected javax.swing.JButton |
button
|
protected java.util.Calendar |
calendar
|
protected JCalendarEx |
calendarComponent
|
protected boolean |
enabled
is this componen currently enabled (editable) |
protected XChangeListener |
fChangeListener
this listens for date changes in the control |
protected javax.swing.JPanel |
panel
|
protected SwingCalendar.Popup |
popup
|
protected javax.swing.JTextField |
textcomponent
|
| Fields inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingStylableComponent |
HELPKEY |
| Fields inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase |
content, currentFont, currentZoom, defaultBGColor, defaultFont, defaultSize, fInputMode, hintText, minSize, style |
| Constructor Summary | |
SwingCalendar()
A iconed swing button |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
|
void |
addActionListener(java.awt.event.ActionListener al)
At the moment ALL events are delegated through a simple actionListener |
void |
addChangeListener(XChangeListener l)
add a change listener |
void |
closeCalendar()
closes a popup component of the calender. |
java.awt.Component |
createContent()
creates the content component |
protected void |
dateSelected(java.util.Calendar aCalendar,
boolean notifyListener)
the user has selected a date from the calendar |
java.awt.Component |
getAddableComponent()
|
protected java.awt.Component |
getCalendarComponent()
|
java.util.Calendar |
getDate()
|
java.awt.Color |
getDefaultBackgroundColor()
the default background color for this type of component null = transparent. |
protected java.awt.Frame |
getParentWindow(java.awt.Component comp)
|
java.awt.Component |
getSizableComponent()
|
java.awt.Component |
getStylableComponent()
|
void |
init()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. |
protected void |
openCalendar()
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
removeActionListener(java.awt.event.ActionListener al)
|
protected void |
setBorder(javax.swing.JComponent component)
|
void |
setDate(java.util.Calendar d)
?@param s The text is set to s |
void |
setEnabled(boolean b)
|
void |
setVisible(boolean v)
Set this drawing area visible. |
protected java.lang.String |
toDisplayValue(java.util.Calendar c)
|
| Methods inherited from class fi.hut.tml.xsmiles.gui.components.swing.SwingStylableComponent |
addHelpListener, createHint, getFormatter, isCaption, removeHelpListener, setBackground, setHintRecursively, setHintText, sizeComponent |
| Methods inherited from class fi.hut.tml.xsmiles.gui.components.general.ComponentBase |
addFocusListener, addMouseListener, getComponent, getDefaultSize, getEnabled, getHeight, getMinimumSize, getPreferredSize, getSize, getStyle, getWidth, getX, getY, removeFocusListener, removeMouseListener, setBounds, setDefaultSize, setFocus, setFont, setForeground, setInputMode, setStyle, setZoom, sizeComponent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fi.hut.tml.xsmiles.gui.components.XComponent |
addFocusListener, addHelpListener, addMouseListener, getComponent, getEnabled, getHeight, getSize, getStyle, getWidth, getX, getY, removeFocusListener, removeHelpListener, removeMouseListener, setBackground, setBounds, setFocus, setForeground, setHintText, setInputMode, setStyle, setZoom |
| Field Detail |
protected javax.swing.JTextField textcomponent
protected javax.swing.JPanel panel
protected javax.swing.JButton button
protected SwingCalendar.Popup popup
protected JCalendarEx calendarComponent
protected java.util.Calendar calendar
protected boolean enabled
protected XChangeListener fChangeListener
| Constructor Detail |
public SwingCalendar()
| Method Detail |
public void setEnabled(boolean b)
setEnabled in interface XComponentsetEnabled in class ComponentBaseb - Active or not activepublic void setVisible(boolean v)
setVisible in interface XComponentsetVisible in class ComponentBasev - true=visible, false=invisiblepublic void init()
init in class SwingStylableComponentpublic java.awt.Color getDefaultBackgroundColor()
ComponentBase
getDefaultBackgroundColor in class ComponentBasepublic java.awt.Component createContent()
public java.util.Calendar getDate()
getDate in interface XCalendarpublic void setDate(java.util.Calendar d)
setDate in interface XCalendarpublic void addActionListener(java.awt.event.ActionListener al)
XComponent
addActionListener in interface XComponentaddActionListener in class ComponentBasepublic void removeActionListener(java.awt.event.ActionListener al)
removeActionListener in interface XComponentremoveActionListener in class ComponentBasepublic void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed in interface java.awt.event.ActionListenerprotected void openCalendar()
protected java.awt.Frame getParentWindow(java.awt.Component comp)
protected void setBorder(javax.swing.JComponent component)
public void closeCalendar()
XCalendar
closeCalendar in interface XCalendarprotected java.awt.Component getCalendarComponent()
protected void dateSelected(java.util.Calendar aCalendar,
boolean notifyListener)
protected java.lang.String toDisplayValue(java.util.Calendar c)
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void addChangeListener(XChangeListener l)
addChangeListener in interface XCalendarpublic java.awt.Component getAddableComponent()
getAddableComponent in class ComponentBasepublic java.awt.Component getSizableComponent()
getSizableComponent in class ComponentBasepublic java.awt.Component getStylableComponent()
getStylableComponent in class ComponentBase
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||