Java Doc for ComponentState.java in  » Swing-Library » substance-look-feel » org » jvnet » substance » utils » 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 » Swing Library » substance look feel » org.jvnet.substance.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jvnet.substance.utils.ComponentState

ComponentState
public enum ComponentState (Code)
This enum is used in order to provide uniform transition effects on mouse events. The effects include different visual appearance of the corresponding control when the mouse hovers over it (rollover), when it's pressed or selected, disabled etc.
Each enum value represents a single state and contains information that is used by the UI delegates in order to correctly paint the corresponding controls.
This class is for internal use only.
author:
   Kirill Grouchnikov

Inner Class :public static enum ColorSchemeKind

Field Summary
 Enum ConstantACTIVE
     Active.
 Enum ConstantARMED
     Armed.
 Enum ConstantDEFAULT
     Default state.
 Enum ConstantDISABLED_ACTIVE
     Disabled active.
 Enum ConstantDISABLED_SELECTED
     Disabled selected.
 Enum ConstantDISABLED_UNSELECTED
     Disabled and not selected.
 Enum ConstantPRESSED_SELECTED
     Pressed selected.
 Enum ConstantPRESSED_UNSELECTED
     Pressed and not selected.
 Enum ConstantROLLOVER_ARMED
     Armed and rolled over.
 Enum ConstantROLLOVER_SELECTED
     Selected and rolled over.
 Enum ConstantROLLOVER_UNSELECTED
     Not selected and rolled over.
 Enum ConstantSELECTED
     Selected.

Constructor Summary
 ComponentState(ColorSchemeKind kind, int count, FadeKind... activeKinds)
     Simple constructor.
Parameters:
  kind - The corresponding color scheme kind.
Parameters:
  count - The corresponding cycle count.
Parameters:
  activeKinds - Indicates active fade kinds for this state.

Method Summary
public  ColorSchemeKindgetColorSchemeKind()
    
public  intgetCycleCount()
     Returns the corresponding cycle count.
public static  ComponentStategetState(ButtonModel model, JComponent component)
     Retrieves component state based on the button model (required parameter) and button itself (optional parameter).
Parameters:
  model - Button model (required).
Parameters:
  component - Button (optional).
public static  ComponentStategetState(ButtonModel model, JComponent component, boolean toIgnoreSelection)
     Retrieves component state based on the button model (required parameter) and button itself (optional parameter).
Parameters:
  model - Button model (required).
Parameters:
  component - Button (optional).
Parameters:
  toIgnoreSelection - If true, the ButtonModel.isSelectedwill not be checked.
public  booleanisKindActive(FadeKind fadeKind)
     Returns indication whether this component state is "active" under the specified fade kind.

Field Detail
ACTIVE
Enum Constant ACTIVE(Code)
Active. Used for enabled buttons that have been marked as default.



ARMED
Enum Constant ARMED(Code)
Armed.



DEFAULT
Enum Constant DEFAULT(Code)
Default state.



DISABLED_ACTIVE
Enum Constant DISABLED_ACTIVE(Code)
Disabled active. Used for disabled buttons that have been marked as default.



DISABLED_SELECTED
Enum Constant DISABLED_SELECTED(Code)
Disabled selected.



DISABLED_UNSELECTED
Enum Constant DISABLED_UNSELECTED(Code)
Disabled and not selected.



PRESSED_SELECTED
Enum Constant PRESSED_SELECTED(Code)
Pressed selected.



PRESSED_UNSELECTED
Enum Constant PRESSED_UNSELECTED(Code)
Pressed and not selected.



ROLLOVER_ARMED
Enum Constant ROLLOVER_ARMED(Code)
Armed and rolled over.



ROLLOVER_SELECTED
Enum Constant ROLLOVER_SELECTED(Code)
Selected and rolled over.



ROLLOVER_UNSELECTED
Enum Constant ROLLOVER_UNSELECTED(Code)
Not selected and rolled over.



SELECTED
Enum Constant SELECTED(Code)
Selected.




Constructor Detail
ComponentState
ComponentState(ColorSchemeKind kind, int count, FadeKind... activeKinds)(Code)
Simple constructor.
Parameters:
  kind - The corresponding color scheme kind.
Parameters:
  count - The corresponding cycle count.
Parameters:
  activeKinds - Indicates active fade kinds for this state. For example,ComponentState.ROLLOVER_SELECTED should pass bothFadeKind.ROLLOVER and FadeKind.SELECTION.




Method Detail
getColorSchemeKind
public ColorSchemeKind getColorSchemeKind()(Code)
Returns the corresponding color scheme kind Corresponding color scheme kind



getCycleCount
public int getCycleCount()(Code)
Returns the corresponding cycle count. Corresponding cycle count.



getState
public static ComponentState getState(ButtonModel model, JComponent component)(Code)
Retrieves component state based on the button model (required parameter) and button itself (optional parameter).
Parameters:
  model - Button model (required).
Parameters:
  component - Button (optional). The matching component state.



getState
public static ComponentState getState(ButtonModel model, JComponent component, boolean toIgnoreSelection)(Code)
Retrieves component state based on the button model (required parameter) and button itself (optional parameter).
Parameters:
  model - Button model (required).
Parameters:
  component - Button (optional).
Parameters:
  toIgnoreSelection - If true, the ButtonModel.isSelectedwill not be checked. This can be used for tracking transitionson menu items that use armed state instead,when we don't want to use different rollover themes forselected and unselected checkbox and radio button menu items(to preserve consistent visual appearence of highlights). The matching component state.



isKindActive
public boolean isKindActive(FadeKind fadeKind)(Code)
Returns indication whether this component state is "active" under the specified fade kind. For example, ComponentState.ROLLOVER_SELECTED will return true for both FadeKind.ROLLOVER and FadeKind.SELECTION .
Parameters:
  fadeKind - Fade kind. true if this component state is"active" under the specified fade kind (for example,ComponentState.ROLLOVER_SELECTED will return true forboth FadeKind.ROLLOVER and FadeKind.SELECTION),false otherwise.



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