Java Doc for ComboBox.java in  » Portal » Open-Portal » graphical » 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 » Portal » Open Portal » graphical 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


graphical.ComboBox

ComboBox
public class ComboBox extends View implements Target,TextFilter,TextFieldOwner,Codable(Code)
Based on IFC 1.0 example class. Added target/command handling stuff, mostly by stealing from Popup but did a "parallel" command instead, since ComboBox seems less ecumenical w/ it's commands - so it's not a kosher implementation, it does the command only at the widget level, not the ListItem level. Also added enable/disable, fixed for correct display in different types of windows, fixed closing on loss of focus (by adding a new subclass off InternalWindow, which shouldn't be right), and a host of other stuff.

Not tidy, but I'm in a hurry.



Field Summary
final static  StringDROPWINDOW_KEYSCROLLGROUP_KEYLISTVIEW_KEYTEXTFIELD_KEYDROPBUTTON_KEYBORDER_KEYMAXSHOWCOUNT_KEYTEXTFILTER_KEYTEXTFIELDOWNER_KEY
    
 Borderborder
    
 BitmapbuttonImage
    
 ButtondropButton
    
 TransInternalWindowdropWindow
    
 booleanisDownInListView
    
 booleanisEnabled
    
 InternalWindowiw_hack
    
 intlastLength
    
 booleanlistIsVisible
    
 ListViewlistView
    
 intmaxShowCount
    
 StringotherCommand
    
 ScrollGroupscrollGroup
    
 Targettarget
    
 TextFieldtextField
    
 TextFieldOwnertextFieldOwner
    
 TextFiltertextFilter
    
 ViewthisViewDammit
    
 booleantypeAhead
    

Constructor Summary
public  ComboBox()
    
public  ComboBox(int x, int y, int width, int height)
    

Method Summary
public  booleanacceptsEvent(Object anObject, KeyEvent event, Vector eventVector)
    
public  voidaddItem(String value)
    
public  voidaddItems(Vector values)
    
public  ListViewcomboboxList()
    
public  Stringcommand()
     Returns the Popup's command.
public  intcount()
    
public  voiddecode(Decoder decoder)
    
public  voiddescribeClassInfo(ClassInfo info)
    
public  voiddrawView(Graphics g)
    
public  voidencode(Encoder encoder)
    
public  TextFilterfilter()
    
public  voidfinishDecoding()
    
public  intfudgeWidth()
    
public  voidinsertItemAt(String value, int index)
    
public  booleanisEnabled()
    
public  intmaxShowCount()
    
public  booleanmouseDown(MouseEvent event)
    
public  voidmouseDragged(MouseEvent event)
    
public  voidmouseUp(MouseEvent event)
    
public  TextFieldOwnerowner()
    
public  voidperformCommand(String command, Object object)
    
public  voidremoveAllItems()
    
public  voidremoveItem(String value)
    
public  voidremoveItemAt(int index)
    
public  StringrowTitleWithTitlePrefix(String title)
    
public  introwWithTitle(String title)
    
public  introwWithTitlePrefix(String title)
    
public  voidselectNextItem()
    
public  voidselectPrevItem()
    
public  voidselectRow(int index)
    
public  intselectRowWithTitle(String title)
     Modified to return the indice.
public  intselectedIndex()
    
public  voidsendCommand()
     Sends a command to the Popup's Target.
public  voidsetCommand(String newCommand)
     Sets the Popup's command.
public  voidsetEditable(boolean b)
     Disables typing in the box.
public  voidsetEnabled(boolean b)
    
public  voidsetFilter(TextFilter object)
    
public  voidsetListIsVisible(boolean value)
    
public  voidsetMaxShowCount(int value)
    
public  voidsetOwner(TextFieldOwner object)
    
public  voidsetStringValue(String value)
    
public  voidsetTarget(Target newTarget)
    
public  voidsetTypeAhead(boolean b)
     Forces "type ahead" and validation - exiting also forces a selection.
public  voidsizeTo(int width, int height)
    
public  voidstopFocus()
    
public  StringstringValue()
    
public  Targettarget()
     Returns the Popup's Target.
public  voidtextEditingDidBegin(TextField textfield)
    
public  voidtextEditingDidEnd(TextField textfield, int endCondition, boolean contentsChanged)
    
public  booleantextEditingWillEnd(TextField textfield, int endCondition, boolean contentsChanged)
    
public  voidtextWasModified(TextField textfield)
    
public  booleantypeAhead()
    
public  ViewviewForMouse(int x, int y)
    
public  voidwillBecomeSelected()
    

Field Detail
DROPWINDOW_KEYSCROLLGROUP_KEYLISTVIEW_KEYTEXTFIELD_KEYDROPBUTTON_KEYBORDER_KEYMAXSHOWCOUNT_KEYTEXTFILTER_KEYTEXTFIELDOWNER_KEY
final static String DROPWINDOW_KEYSCROLLGROUP_KEYLISTVIEW_KEYTEXTFIELD_KEYDROPBUTTON_KEYBORDER_KEYMAXSHOWCOUNT_KEYTEXTFILTER_KEYTEXTFIELDOWNER_KEY(Code)



border
Border border(Code)



buttonImage
Bitmap buttonImage(Code)



dropButton
Button dropButton(Code)



dropWindow
TransInternalWindow dropWindow(Code)



isDownInListView
boolean isDownInListView(Code)



isEnabled
boolean isEnabled(Code)



iw_hack
InternalWindow iw_hack(Code)



lastLength
int lastLength(Code)



listIsVisible
boolean listIsVisible(Code)



listView
ListView listView(Code)



maxShowCount
int maxShowCount(Code)



otherCommand
String otherCommand(Code)



scrollGroup
ScrollGroup scrollGroup(Code)



target
Target target(Code)



textField
TextField textField(Code)



textFieldOwner
TextFieldOwner textFieldOwner(Code)



textFilter
TextFilter textFilter(Code)



thisViewDammit
View thisViewDammit(Code)



typeAhead
boolean typeAhead(Code)




Constructor Detail
ComboBox
public ComboBox()(Code)



ComboBox
public ComboBox(int x, int y, int width, int height)(Code)




Method Detail
acceptsEvent
public boolean acceptsEvent(Object anObject, KeyEvent event, Vector eventVector)(Code)



addItem
public void addItem(String value)(Code)



addItems
public void addItems(Vector values)(Code)



comboboxList
public ListView comboboxList()(Code)



command
public String command()(Code)
Returns the Popup's command.
See Also:   ComboBox.setCommand



count
public int count()(Code)



decode
public void decode(Decoder decoder) throws CodingException(Code)



describeClassInfo
public void describeClassInfo(ClassInfo info)(Code)



drawView
public void drawView(Graphics g)(Code)



encode
public void encode(Encoder encoder) throws CodingException(Code)



filter
public TextFilter filter()(Code)



finishDecoding
public void finishDecoding() throws CodingException(Code)



fudgeWidth
public int fudgeWidth()(Code)



insertItemAt
public void insertItemAt(String value, int index)(Code)



isEnabled
public boolean isEnabled()(Code)



maxShowCount
public int maxShowCount()(Code)



mouseDown
public boolean mouseDown(MouseEvent event)(Code)



mouseDragged
public void mouseDragged(MouseEvent event)(Code)



mouseUp
public void mouseUp(MouseEvent event)(Code)



owner
public TextFieldOwner owner()(Code)



performCommand
public void performCommand(String command, Object object)(Code)



removeAllItems
public void removeAllItems()(Code)



removeItem
public void removeItem(String value)(Code)



removeItemAt
public void removeItemAt(int index)(Code)



rowTitleWithTitlePrefix
public String rowTitleWithTitlePrefix(String title)(Code)



rowWithTitle
public int rowWithTitle(String title)(Code)



rowWithTitlePrefix
public int rowWithTitlePrefix(String title)(Code)



selectNextItem
public void selectNextItem()(Code)



selectPrevItem
public void selectPrevItem()(Code)



selectRow
public void selectRow(int index)(Code)



selectRowWithTitle
public int selectRowWithTitle(String title)(Code)
Modified to return the indice. The indice is < 0 if row is not found. Also sets the string value to blank if nothing found.



selectedIndex
public int selectedIndex()(Code)



sendCommand
public void sendCommand()(Code)
Sends a command to the Popup's Target. This command is either the selected ListItem's command, or the Popup's command (if the ListItem has no command).



setCommand
public void setCommand(String newCommand)(Code)
Sets the Popup's command. The Popup sends this command to its Target if the selected ListItem does not have a command.



setEditable
public void setEditable(boolean b)(Code)
Disables typing in the box. Pulldown still active.



setEnabled
public void setEnabled(boolean b)(Code)



setFilter
public void setFilter(TextFilter object)(Code)



setListIsVisible
public void setListIsVisible(boolean value)(Code)



setMaxShowCount
public void setMaxShowCount(int value)(Code)



setOwner
public void setOwner(TextFieldOwner object)(Code)



setStringValue
public void setStringValue(String value)(Code)



setTarget
public void setTarget(Target newTarget)(Code)



setTypeAhead
public void setTypeAhead(boolean b)(Code)
Forces "type ahead" and validation - exiting also forces a selection.



sizeTo
public void sizeTo(int width, int height)(Code)



stopFocus
public void stopFocus()(Code)



stringValue
public String stringValue()(Code)



target
public Target target()(Code)
Returns the Popup's Target.
See Also:   ComboBox.setTarget



textEditingDidBegin
public void textEditingDidBegin(TextField textfield)(Code)



textEditingDidEnd
public void textEditingDidEnd(TextField textfield, int endCondition, boolean contentsChanged)(Code)



textEditingWillEnd
public boolean textEditingWillEnd(TextField textfield, int endCondition, boolean contentsChanged)(Code)



textWasModified
public void textWasModified(TextField textfield)(Code)



typeAhead
public boolean typeAhead()(Code)



viewForMouse
public View viewForMouse(int x, int y)(Code)



willBecomeSelected
public void willBecomeSelected()(Code)



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