com.ccg.values
Class View

java.lang.Object
  extended by com.ccg.values.View
All Implemented Interfaces:
ActionListener, EventListener, ChangeListener

public final class View
extends Object
implements ActionListener, ChangeListener

Utility to test a implementation of a ValuesEditor.

This utility can be used to dynamically load (and initialize) any full implementation of the ValuesEditor. You start this utility via:

  java com.ccg.values.View -class CLASS [CLASS_SETTINGS]
 

For example, to try out the TimeSpanEditor, one could use:

  java com.ccg.values.View -class com.ccg.values.stock.TimeSpanEditor \
    -start.label "Search From: " -end.label "Until: "
 

Currently, this method only lets one try out implementations of GUI editors - you can not actually save/load anything which you change. However, the ValuesFactoryTree class provides a fuller implementation allowing one to save/load/create configurations of objects - but it requires that you also provide a ValuesConfig implementation.

Since:
1.0
Version:
$Revision: 1.2 $
Author:
$Author: pkb $

Method Summary
 void actionPerformed(ActionEvent ae)
           
static void main(String[] args)
          Starts up GUI test application.
 void stateChanged(ChangeEvent ce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Starts up GUI test application.

Parameters:
args - Command line arguments. At a minimum "-class CLASS" must be specified.
Since:
1.0

stateChanged

public void stateChanged(ChangeEvent ce)
Specified by:
stateChanged in interface ChangeListener

actionPerformed

public void actionPerformed(ActionEvent ae)
Specified by:
actionPerformed in interface ActionListener


Copyright 1998-1998-2006 null. All Rights Reserved.