Java Doc for CommandExecutor.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » iv » flash » util » 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 » Ajax » Laszlo 4.0.10 » org.openlaszlo.iv.flash.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.iv.flash.util.CommandExecutor

CommandExecutor
public class CommandExecutor (Code)
Standard executor of context commands.

To add new command you have to add new method to this class or to one of its subclasses. Name of the command will be name of the method. If command was invoked without parameters then method without parameters will be called, if command was invoked with several parameters then method with corresponding number of parameters will be called. If none of these was succeded then method with parameter Vector will be called.
author:
   Dmitry Skavish
See Also:   CommandContext



Field Summary
protected  FlashFileflashFile
    

Constructor Summary
public  CommandExecutor(FlashFile flashFile)
     Create executor in environment of given flash file.
public  CommandExecutor()
    

Method Summary
public  Stringalpha(Context context, String s)
    
public  Stringblue(Context context, String s)
    
public  Stringcolor2web(Context context, String s)
    
public  Stringd2b(Context context, String s)
    
public  Stringd2h(Context context, String s)
    
public  Stringdate(Context context)
    
public  Stringdate(Context context, String format)
    
public  Stringexecute(Context context, String name, Vector parms)
     Executes command.
public  FlashFilegetFlashFile()
    
public  Stringgreen(Context context, String s)
    
public  Stringh2d(Context context, String s)
    
public  Stringjs(Context context, String fileName)
    
public  Stringlen(Context context, String s)
    
public  Stringred(Context context, String s)
    
public  voidsetFlashFile(FlashFile flashFile)
    
public  Stringsubstr(Context context, String s, String from)
    
public  Stringsubstr(Context context, String s, String from, String to)
    
public  Stringversion(Context context)
    

Field Detail
flashFile
protected FlashFile flashFile(Code)




Constructor Detail
CommandExecutor
public CommandExecutor(FlashFile flashFile)(Code)
Create executor in environment of given flash file.
Parameters:
  file - environment for executor



CommandExecutor
public CommandExecutor()(Code)




Method Detail
alpha
public String alpha(Context context, String s)(Code)
Returns alpha component of specified color in decimal
Parameters:
  s - specified color either by its name or by web color alpha component



blue
public String blue(Context context, String s)(Code)
Returns blue component of specified color in decimal
Parameters:
  s - specified color either by its name or by web color blue component



color2web
public String color2web(Context context, String s)(Code)
Converts color to its web color representation

For example:

red -> #ffff0000 green -> #ff00ff00
Parameters:
  s - color specified either by name or by webcolor web representation of color




d2b
public String d2b(Context context, String s)(Code)
Converts decimal to binary: 4 -> 100
Parameters:
  s - string in decimal representation binary representation



d2h
public String d2h(Context context, String s)(Code)
Converts decimal to hex: 32 -> 20
Parameters:
  s - string in decimal representation hex representation



date
public String date(Context context)(Code)
Returns current time and date current time and date



date
public String date(Context context, String format)(Code)
Returns current time and date formatted according to given template.

Examples:

  • MM/dd/yyyy hh:mm:ss z

Parameters:
  format - date format current formatted date



execute
public String execute(Context context, String name, Vector parms)(Code)
Executes command.
Parameters:
  context - context from which the command was called
Parameters:
  name - name fo the command
Parameters:
  parms - parameters or null result of the command execution



getFlashFile
public FlashFile getFlashFile()(Code)



green
public String green(Context context, String s)(Code)
Returns green component of specified color in decimal
Parameters:
  s - specified color either by its name or by web color green component



h2d
public String h2d(Context context, String s)(Code)
Converts hex to decimal: 20 -> 32
Parameters:
  s - string in hex representation decimal representation



js
public String js(Context context, String fileName)(Code)
Loads and executes javascript file
Parameters:
  fileName - file with javascript whatever was printed during execution of javascript



len
public String len(Context context, String s)(Code)
Returns length of the specified string
Parameters:
  s - specified string length of the specified string



red
public String red(Context context, String s)(Code)
Returns red component of specified color in decimal
Parameters:
  s - specified color either by its name or by web color red component



setFlashFile
public void setFlashFile(FlashFile flashFile)(Code)



substr
public String substr(Context context, String s, String from)(Code)
Returns substring of specified string
Parameters:
  s - specified string
Parameters:
  from - start index substring



substr
public String substr(Context context, String s, String from, String to)(Code)
Returns substring of specified string
Parameters:
  s - specified string
Parameters:
  from - start index
Parameters:
  to - to index substring



version
public String version(Context context)(Code)
Return JGenerator version JGenerator version



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.