ewe.sys
Class VMApp

java.lang.Object
  extended byewe.data.DataObject
      extended byewe.data.LiveObject
          extended byewe.sys.VMApp
All Implemented Interfaces:
Comparable, Copyable, DataUnit, FieldListener, LiveData

public class VMApp
extends LiveObject


Field Summary
 String _fields
           
static int ADD_NEW
           
 String args
           
 String category
           
 boolean copyOver
           
 boolean execWithEwe
           
 IImage image
           
 ImageBytes imageBytes
           
 int install
           
 String location
           
 String name
           
 String programDir
           
 String startClass
           
 String target
           
 String vmArgs
           
static int ZAURUS_INSTALL
          An option for getEditor().
 
Constructor Summary
VMApp()
           
 
Method Summary
 void action(String field, Editor ed)
          This gets called by action(FieldTransfer ft,Editor ed) and by fieldChanged(FieldTransfer ft,Editor ed) if the field changed is a menu item.
 void addToPanel(CellPanel cp, Editor ed, int options)
          Override this to provide the user interface for editing the Object.
 String baseName()
           
 PropertyList chosenProperties()
           
 void copyFrom(Object other)
          Copy all appropriate data from another object.
protected  TextDecoder decode(TextDecoder te)
          Override this to decode the fields that you want to decode.
protected  TextEncoder encode(TextEncoder te)
          Override this to encode the fields that you want to encode.
 void fieldChanged(String field, Editor ed)
          This gets called by fieldChanged(FieldTransfer ft,Editor ed).
 PropertyList getInstallProperties(RandomAccessStream stream)
           
 PropertyList load()
          Load up the icon for the shortcut.
 boolean makeFrom(String target, Frame parent)
           
 boolean run()
           
 boolean selectInstall(int index)
           
 
Methods inherited from class ewe.data.LiveObject
action, addMeToPanel, addObjectToPanel, decoded, decodeFields, enableEditorScrolling, encoded, encodeFields, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, getName, input, makeNewEditor, runAsApp, textDecode, textEncode
 
Methods inherited from class ewe.data.DataObject
_getSetField, appendAllFields, compareTo, copied, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, toString
 
Methods inherited from interface ewe.data.DataUnit
getNew
 
Methods inherited from interface ewe.util.Copyable
getCopy
 
Methods inherited from interface ewe.util.Comparable
compareTo
 

Field Detail

name

public String name

args

public String args

target

public String target

programDir

public String programDir

category

public String category

copyOver

public boolean copyOver

execWithEwe

public boolean execWithEwe

image

public IImage image

location

public String location

install

public int install

startClass

public String startClass

vmArgs

public String vmArgs

imageBytes

public ImageBytes imageBytes

_fields

public String _fields

ZAURUS_INSTALL

public static final int ZAURUS_INSTALL
An option for getEditor().

See Also:
Constant Field Values

ADD_NEW

public static final int ADD_NEW
See Also:
Constant Field Values
Constructor Detail

VMApp

public VMApp()
Method Detail

encode

protected TextEncoder encode(TextEncoder te)
Description copied from class: LiveObject
Override this to encode the fields that you want to encode. The LiveObject implementation of this automatically encodes all the fields for each class in the hierarchy that does not override encode(TextEncoder te);

Overrides:
encode in class LiveObject

decode

protected TextDecoder decode(TextDecoder te)
Description copied from class: LiveObject
Override this to decode the fields that you want to decode. The LiveObject implementation of this automatically decodes all the fields for each class in the hierarchy that does not override decode(TextDecoder td);

Overrides:
decode in class LiveObject

copyFrom

public void copyFrom(Object other)
Description copied from interface: DataUnit
Copy all appropriate data from another object.

Specified by:
copyFrom in interface DataUnit
Overrides:
copyFrom in class DataObject

baseName

public String baseName()

chosenProperties

public PropertyList chosenProperties()

addToPanel

public void addToPanel(CellPanel cp,
                       Editor ed,
                       int options)
Description copied from class: LiveObject
Override this to provide the user interface for editing the Object. Add all your controls to the CellPanel cp, and your fields to the Editor ed. The options parameter may be used to specify a different Editor for the Object for different situations - it is the same parameter that is passed to the LiveData.getEditor(int options) call.

Overrides:
addToPanel in class LiveObject

fieldChanged

public void fieldChanged(String field,
                         Editor ed)
Description copied from class: LiveObject
This gets called by fieldChanged(FieldTransfer ft,Editor ed). By default it will look for a method called void _changed(Editor ed) and if it finds it, it will be executed.

Overrides:
fieldChanged in class LiveObject

action

public void action(String field,
                   Editor ed)
Description copied from class: LiveObject
This gets called by action(FieldTransfer ft,Editor ed) and by fieldChanged(FieldTransfer ft,Editor ed) if the field changed is a menu item. By default it will look for a method called void _action(Editor ed) and if it finds it, it will be executed.

Overrides:
action in class LiveObject

selectInstall

public boolean selectInstall(int index)

makeFrom

public boolean makeFrom(String target,
                        Frame parent)

run

public boolean run()

getInstallProperties

public PropertyList getInstallProperties(RandomAccessStream stream)

load

public PropertyList load()
Load up the icon for the shortcut.