|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.panels.MetaTraversable
oracle.ide.panels.Step
The Step class is responsible for specifying metadata
for a Traversable that has not yet been instantiated;
Step differs from MetaTraversable in that
Step is intended to be used for specifying a sequence
of panels that are displayed by the FSMWizard.
The current behavior of Step is identical to
MetaTraversable. Future extensions that apply only to
the FSMWizard will be added to Step rather
than to MetaTraversable.
| Constructor Summary | |
protected |
Step()
Should only be used by copyTo(Object). |
|
Step(java.lang.Class traversableClass)
|
|
Step(java.lang.Class traversableClass,
java.lang.Class[] constructorArgTypes,
java.lang.Object[] constructorArgs)
|
| Method Summary | |
java.lang.Object |
copyTo(java.lang.Object target)
Copies the internal state of this object to the
specified copy. |
protected void |
copyToImpl(Step copy)
|
java.lang.String |
getPageTitle()
Method to get the title of the page that presents this Step |
static Step[] |
newSteps(java.lang.String[] traversableClasses)
Convenience method for creating an array of Step
objects based on an array of strings that provide the fully
qualified class names of the Traversables. |
Traversable |
newTraversable(CommitNotifier commitNotifier)
This method specifies the Traversable that will be used
in association with the Navigable; in general, only
NavigableUIContainer implementations should call this
method directly. |
void |
setPageTitle(java.lang.String pageTitle)
Method to set the title of the page that presents this Step |
| Methods inherited from class oracle.ide.panels.MetaTraversable |
copyToImpl, getTraversableClass, isUsingTraversableDefaultConstructor, newTraversable, newTraversable, setHelpID, setNameLink |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Step(java.lang.Class traversableClass)
public Step(java.lang.Class traversableClass,
java.lang.Class[] constructorArgTypes,
java.lang.Object[] constructorArgs)
protected Step()
copyTo(Object).
| Method Detail |
public static Step[] newSteps(java.lang.String[] traversableClasses)
Step
objects based on an array of strings that provide the fully
qualified class names of the Traversables.
public java.lang.String getPageTitle()
public void setPageTitle(java.lang.String pageTitle)
pageTitle - String that represents the title of the pagepublic final Traversable newTraversable(CommitNotifier commitNotifier)
Traversable that will be used
in association with the Navigable; in general, only
NavigableUIContainer implementations should call this
method directly.
By default, this method uses the Class that was specified
when this Navigable was created and calls
Class.newInstance() on that Class to create the
new Traversable. If the class is null or
the class does not implement a public default constructor or
the newly created object cannot be cast to Traversable,
this method will return an instance of DefaultTraversablePanel. If the class implements the CommitListener interface, then the Traversable instance
will be added as an CommitListener to the NavigableUIContainer as well.
Traversable which represents the detail UI
component that is shown when the user selects this
Navigable in the NavigableUIContainer.public java.lang.Object copyTo(java.lang.Object target)
Copyablethis object to the
specified copy. If copy is
null, then this method should create a new instance
of this class and proceed to copy the internal state
to the newly created object. Generally, only the persistent
state of the object should be copied, but whether or not it is
appropriate to copy transient properties is at the discretion
of the individual implementor.
Regardless of whether the copy occurs to an existing object or to
a newly created object, the return value is object to which
this object's state was copied.
There is a standard implementation pattern for the
copyTo method that helps avoid problems that arise
when a Copyable object is subclassed. The pattern
is:
public Object copyTo( Object target )
{
final <this_class> copy =
target != null ? (<this_class>) target : new <this_class>();
copyToImpl( copy );
return copy;
}
protected final void copyToImpl( <this_class> copy )
{
super.copyToImpl( copy ); // if necessary
// put code here for copying the properties of <this_class>
}
The parameter passed into the copyToImpl method is
the same type of this class. The responsibility of
copyToImpl is to copy the state of this
class through direct access of the fields. The
copyToImpl method should not use getters and setters
since these may be overridden, causing the state of
this class to be incompletely copied.
copyTo in interface CopyablecopyTo in class MetaTraversableprotected final void copyToImpl(Step copy)
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.