Java Doc for XTimeChooser.java in  » XML-UI » xui32 » com » xoetrope » swing » date » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML UI » xui32 » com.xoetrope.swing.date 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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 $



Field Summary
final public static  intDURATION_MODE
    
final public static  intEND_TIME_MODE
    
final public static  intSTEP_HALF_HOURS
    
final public static  intSTEP_HOURS
    
final public static  intSTEP_QUATER_HOURS
    
final public static  intTIME_MODE
    
protected  SimpleDateFormatdateFormat
    
protected  SimpleDateFormatparseFormat
    

Constructor Summary
public  XTimeChooser()
    

Method Summary
public  ComboBoxEditorgetEditor()
    
public  StringgetText()
    
public  intsetAttribute(String attribName, Object attribValue)
     Set one or more attributes of the component.
public  voidsetBackground(Color c)
    
public  voidsetFont(Font f)
    
public  voidsetForeground(Color c)
    
public  voidsetFormat(String format)
     Set the format of the edit field.
public  voidsetParseFormat(String format)
     Set the format of the edit field data as it is parsed from the data model or when the setText method is invoked.
public  voidsetRenderer(ListCellRenderer renderer)
    
public  voidsetText(String s)
    

Field Detail
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



dateFormat
protected SimpleDateFormat dateFormat(Code)



parseFormat
protected SimpleDateFormat parseFormat(Code)




Constructor Detail
XTimeChooser
public XTimeChooser()(Code)
Creates a new time chooser




Method Detail
getEditor
public ComboBoxEditor getEditor()(Code)



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.
  1. format, value=SimpleDateFormat the presentation format of the date
  2. parseformat, value=SimpleDateFormat the format of the incoming date
  3. starttime, value=date start date whose time component will be displayed
  4. 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



Fields inherited from javax.swing.JComboBox
protected String actionCommand(Code)(Java Doc)
protected ComboBoxModel dataModel(Code)(Java Doc)
protected ComboBoxEditor editor(Code)(Java Doc)
protected boolean isEditable(Code)(Java Doc)
protected KeySelectionManager keySelectionManager(Code)(Java Doc)
protected boolean lightWeightPopupEnabled(Code)(Java Doc)
protected int maximumRowCount(Code)(Java Doc)
protected ListCellRenderer renderer(Code)(Java Doc)
protected Object selectedItemReminder(Code)(Java Doc)

Methods inherited from javax.swing.JComboBox
public void actionPerformed(ActionEvent e)(Code)(Java Doc)
protected void actionPropertyChanged(Action action, String propertyName)(Code)(Java Doc)
public void addActionListener(ActionListener l)(Code)(Java Doc)
public void addItem(Object anObject)(Code)(Java Doc)
public void addItemListener(ItemListener aListener)(Code)(Java Doc)
public void addPopupMenuListener(PopupMenuListener l)(Code)(Java Doc)
public void configureEditor(ComboBoxEditor anEditor, Object anItem)(Code)(Java Doc)
protected void configurePropertiesFromAction(Action a)(Code)(Java Doc)
public void contentsChanged(ListDataEvent e)(Code)(Java Doc)
protected PropertyChangeListener createActionPropertyChangeListener(Action a)(Code)(Java Doc)
protected KeySelectionManager createDefaultKeySelectionManager()(Code)(Java Doc)
protected void fireActionEvent()(Code)(Java Doc)
protected void fireItemStateChanged(ItemEvent e)(Code)(Java Doc)
public void firePopupMenuCanceled()(Code)(Java Doc)
public void firePopupMenuWillBecomeInvisible()(Code)(Java Doc)
public void firePopupMenuWillBecomeVisible()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Action getAction()(Code)(Java Doc)
public String getActionCommand()(Code)(Java Doc)
public ActionListener[] getActionListeners()(Code)(Java Doc)
public ComboBoxEditor getEditor()(Code)(Java Doc)
public Object getItemAt(int index)(Code)(Java Doc)
public int getItemCount()(Code)(Java Doc)
public ItemListener[] getItemListeners()(Code)(Java Doc)
public KeySelectionManager getKeySelectionManager()(Code)(Java Doc)
public int getMaximumRowCount()(Code)(Java Doc)
public ComboBoxModel getModel()(Code)(Java Doc)
public PopupMenuListener[] getPopupMenuListeners()(Code)(Java Doc)
public Object getPrototypeDisplayValue()(Code)(Java Doc)
public ListCellRenderer getRenderer()(Code)(Java Doc)
public int getSelectedIndex()(Code)(Java Doc)
public Object getSelectedItem()(Code)(Java Doc)
public Object[] getSelectedObjects()(Code)(Java Doc)
public ComboBoxUI getUI()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public void hidePopup()(Code)(Java Doc)
public void insertItemAt(Object anObject, int index)(Code)(Java Doc)
protected void installAncestorListener()(Code)(Java Doc)
public void intervalAdded(ListDataEvent e)(Code)(Java Doc)
public void intervalRemoved(ListDataEvent e)(Code)(Java Doc)
public boolean isEditable()(Code)(Java Doc)
public boolean isLightWeightPopupEnabled()(Code)(Java Doc)
public boolean isPopupVisible()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void processKeyEvent(KeyEvent e)(Code)(Java Doc)
public void removeActionListener(ActionListener l)(Code)(Java Doc)
public void removeAllItems()(Code)(Java Doc)
public void removeItem(Object anObject)(Code)(Java Doc)
public void removeItemAt(int anIndex)(Code)(Java Doc)
public void removeItemListener(ItemListener aListener)(Code)(Java Doc)
public void removePopupMenuListener(PopupMenuListener l)(Code)(Java Doc)
public boolean selectWithKeyChar(char keyChar)(Code)(Java Doc)
protected void selectedItemChanged()(Code)(Java Doc)
public void setAction(Action a)(Code)(Java Doc)
public void setActionCommand(String aCommand)(Code)(Java Doc)
public void setEditable(boolean aFlag)(Code)(Java Doc)
public void setEditor(ComboBoxEditor anEditor)(Code)(Java Doc)
public void setEnabled(boolean b)(Code)(Java Doc)
public void setKeySelectionManager(KeySelectionManager aManager)(Code)(Java Doc)
public void setLightWeightPopupEnabled(boolean aFlag)(Code)(Java Doc)
public void setMaximumRowCount(int count)(Code)(Java Doc)
public void setModel(ComboBoxModel aModel)(Code)(Java Doc)
public void setPopupVisible(boolean v)(Code)(Java Doc)
public void setPrototypeDisplayValue(Object prototypeDisplayValue)(Code)(Java Doc)
public void setRenderer(ListCellRenderer aRenderer)(Code)(Java Doc)
public void setSelectedIndex(int anIndex)(Code)(Java Doc)
public void setSelectedItem(Object anObject)(Code)(Java Doc)
public void setUI(ComboBoxUI ui)(Code)(Java Doc)
public void showPopup()(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.