| |
|
| javax.swing.JComboBox com.xoetrope.swing.date.XTimeChooser
XTimeChooser | public class XTimeChooser extends JComboBox implements XAttributedComponent,XTextHolder(Code) | | A control for choosing the time-of-day
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.2 $
|
DURATION_MODE | final public static int DURATION_MODE(Code) | | Pick a length of time
|
END_TIME_MODE | final public static int END_TIME_MODE(Code) | | Pick a time for ending an event, after a spoecified start date
|
STEP_HALF_HOURS | final public static int STEP_HALF_HOURS(Code) | | |
STEP_HOURS | final public static int STEP_HOURS(Code) | | |
STEP_QUATER_HOURS | final public static int STEP_QUATER_HOURS(Code) | | |
TIME_MODE | final public static int TIME_MODE(Code) | | Pick a time of day
|
XTimeChooser | public XTimeChooser()(Code) | | Creates a new time chooser
|
getText | public String getText()(Code) | | Gets the content of the edit field
the date string |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component.
- format, value=SimpleDateFormat the presentation format of the date
- parseformat, value=SimpleDateFormat the format of the incoming date
- starttime, value=date start date whose time component will be displayed
- editable, value=true to allow edits
Parameters: attribName - the name of the attribute Parameters: attribValue - the value of the attribute 0 for success, non zero for failure or to require some further action |
setBackground | public void setBackground(Color c)(Code) | | Set the background color for the edit field
Parameters: c - the color |
setFont | public void setFont(Font f)(Code) | | Set the font
Parameters: f - the font |
setForeground | public void setForeground(Color c)(Code) | | Set the foreground color for the edit field
Parameters: c - the color |
setFormat | public void setFormat(String format)(Code) | | Set the format of the edit field. The format is used in the construction of
a java.text.SimpleDateFormat instance.
Parameters: format - the new date format |
setParseFormat | public void setParseFormat(String format)(Code) | | Set the format of the edit field data as it is parsed from the data model
or when the setText method is invoked. The format is used in the construction of
a java.text.SimpleDateFormat instance.
Parameters: format - the incoming date |
setRenderer | public void setRenderer(ListCellRenderer renderer)(Code) | | Set the list cell renderer, preserving the foreground and background
colors in the process
Parameters: renderer - the new renderer. |
setText | public void setText(String s)(Code) | | Sets the content of the edit field
Parameters: s - the new date string |
|
|
|