public class QObject
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getComponent(java.lang.String name)
Retrieve a UI component by name.
|
java.util.Set<java.lang.String> |
getComponentIds()
Get a listing of the id's of all Swing components in use.
|
QEngineProxy |
getEngine()
Get the engine for invoking Q commands.
|
<E> E |
getInstance(java.lang.Class<E> type)
Advanced functionality for retrieving any class from the Guice injector.
|
Resources |
getResources()
Get access to system
Resources for advanced use. |
QVariables |
getVariables()
Get the
QVariables object that offers access to configuration and location variables. |
java.lang.String |
quote(java.lang.String argument)
Add quotes around a String.
|
java.lang.String |
quoteAndEscape(java.lang.String argument)
Create a quoted and escaped shell string literal.
|
java.lang.String |
urlEscape(java.lang.String argument)
Replace URL escape characters with their escape sequences.
|
public QEngineProxy getEngine()
public QVariables getVariables()
QVariables
object that offers access to configuration and location variables.public Resources getResources()
Resources
for advanced use.public java.lang.String quote(java.lang.String argument)
argument
- String to quote.public <E> E getInstance(java.lang.Class<E> type)
E
- the return type matches the type of the argument.type
- class we want to retrieve the instance for.public java.lang.String quoteAndEscape(java.lang.String argument)
argument
- Contents of the literal.QEngineProxy
public java.lang.String urlEscape(java.lang.String argument)
argument
- String containing escape characters.public java.util.Set<java.lang.String> getComponentIds()
public java.lang.Object getComponent(java.lang.String name)
name
- Name of the component.