Class Properties.PropMan
All Packages    This Package    Previous    Next

Class Properties.PropMan

java.lang.Object
   |
   +----Properties.PropMan

public class PropMan
extends Object
This is the property manager. It is responsable for keeping track of the property window

title
The title of the property window

PropMan(UndoMan)
Default constructor
PropMan(String, UndoMan)
Construct a new property with a title t
PropMan(String, String, UndoMan)
Construct a new propMan with properties from s and title t prop format: [prop1=value1, prop2=value2, ..., propn=valuen]

add(Prop)
add property tp
cancel()
user hit cancel should only be called when window is showing
close()
user hit close should only be called when window is showing
copy()
Returns an identical copy of the PropMan.
delete(String)
delete property tp
fromString(String)
load properties listed in String s prop format: [prop1=value1, prop2=value2, ..., propn=valuen] returns true if successful
getDouble(String)
get the double value of a property returns 0 if not a property or not a double
getProps()
Get a vector of properties
getProptoShow()
returns the string assoicated with the property to be shown returns null if no such property exists
getString(String)
get the string associated with a property returns null if not a prop name
setProp(String, String)
sets the property with name, name to value val
setProptoShow(String)
set the property to show returns true if successful
show()
show the property window if it is already showing, bring it to the front
toString()
returns the string representing the properties

title
  public String title
The title of the property window

PropMan
  public PropMan(UndoMan _um)
Default constructor

PropMan

  public PropMan(String t,
                 UndoMan _um)
Construct a new property with a title t

PropMan

  public PropMan(String t,
                 String s,
                 UndoMan _um)
Construct a new propMan with properties from s and title t prop format: [prop1=value1, prop2=value2, ..., propn=valuen]

fromString
  public boolean fromString(String s)
load properties listed in String s prop format: [prop1=value1, prop2=value2, ..., propn=valuen] returns true if successful

copy

  public PropMan copy()
Returns an identical copy of the PropMan. The window of the copy is always closed

getProps

  public PropVector getProps()
Get a vector of properties

toString

  public String toString()
returns the string representing the properties
Overrides:
toString in class Object

getProptoShow

  public String getProptoShow()
returns the string assoicated with the property to be shown returns null if no such property exists

setProptoShow

  public boolean setProptoShow(String s)
set the property to show returns true if successful

show

  public void show()
show the property window if it is already showing, bring it to the front

cancel

  public void cancel()
user hit cancel should only be called when window is showing

close

  public void close()
user hit close should only be called when window is showing

add

  public void add(Prop tp)
add property tp

delete

  public void delete(String deleteme)
delete property tp

setProp

  public void setProp(String name,
                      String val)
sets the property with name, name to value val

getString

  public String getString(String name)
get the string associated with a property returns null if not a prop name

getDouble

  public double getDouble(String name)
get the double value of a property returns 0 if not a property or not a double


All Packages    This Package    Previous    Next