|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectti.chimera.Resource
ti.chimera.Plugin.ViewResource
A view-resource adds a view, when installed, and removes the view when uninstalled.
Constructor Summary | |
Plugin.ViewResource(Plugin.ViewFactory vh,
boolean managed)
Create a ViewResource |
|
Plugin.ViewResource(oscript.data.Value fxn,
boolean managed)
Create a ViewResource . |
|
Plugin.ViewResource(View view)
Create a ViewResource for a view. |
Method Summary | |
void |
install()
install the view |
java.lang.String |
toString()
For debugging. |
void |
uninstall()
uninstall the view that was installed |
Methods inherited from class ti.chimera.Resource |
isManaged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Plugin.ViewResource(Plugin.ViewFactory vh, boolean managed)
ViewResource
vh
- the view-factorymanaged
- is this a managed viewpublic Plugin.ViewResource(oscript.data.Value fxn, boolean managed)
ViewResource
. This constructor is provided as
a convenience for script code, so script code can simply pass in a
function that returns a View
, rather than having to pass in
an instance of ViewFactory
.
fxn
- the script function that takes no args and
returns a view instancemanaged
- is this a managed viewpublic Plugin.ViewResource(View view)
ViewResource
for a view. Since a view is
potentially not lightweight, this constructor only allows you
to create an unmanaged resource. To create a managed resouce,
use the constructor that takes a ViewFactory
(or a script
function that returns a view).
view
- the viewMethod Detail |
public void install()
install
in class Resource
Resource.uninstall()
public void uninstall()
uninstall
in class Resource
Resource.install()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |