|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
wt.clients.folderexplorer.CreationClassDialog
A Dialog
which displays a list of classes that implement
the FolderEntry
interface. This dialog supports choosing
a single entry from the list of classes.
CreationClassDialog dialog = new CreationClassDialog( my_frame, true ); dialog.show(); if( !dialog.isCanceled() ) { createNewObject( dialog.getSelectedClass() ); }
Dialog
,
FolderEntry
,
Serialized FormNested Class Summary | |
(package private) class |
CreationClassDialog.InitializeClassesThread
|
(package private) class |
CreationClassDialog.InitializeMultiListThread
|
(package private) class |
CreationClassDialog.SymAction
|
(package private) class |
CreationClassDialog.SymItem
|
(package private) class |
CreationClassDialog.SymKey
|
(package private) class |
CreationClassDialog.SymWindow
|
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private boolean |
actionsDisabled
|
(package private) Panel |
buttonPanel
|
(package private) Button |
cancelButton
|
private static com.objectspace.jgl.HashMap |
classesHashMap
|
(package private) Label |
classTypeLabel
|
(package private) TextField |
classTypeValue
|
private ThreadGroup |
contextGroup
|
private Object |
disableActions
|
(package private) boolean |
fComponentsAdjusted
|
(package private) symantec.itools.awt.shape.HorizontalLine |
horizontalLine1
|
private IconCache |
iconCache
|
private boolean |
initComplete
|
private Exception |
initException
|
private Object |
initLock
|
private boolean |
initSuccessful
|
private boolean |
isCanceled
|
private boolean |
isShowing
|
(package private) WTMultiList |
multiList1
|
(package private) Button |
okButton
|
private Applet |
parentApplet
|
private static ResourceBundle |
resources
|
private static String |
RESOURCES
|
private Class |
selectedClass
|
private Object |
showDialog
|
private static int |
TYPE
|
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CreationClassDialog(Frame parent,
boolean modal)
Constructor for CreationClassDialog . |
|
CreationClassDialog(Frame parent,
String title,
boolean modal)
Constructor for CreationClassDialog . |
Method Summary | |
void |
addNotify()
|
(package private) void |
cancelButton_Action(ActionEvent event)
|
(package private) void |
cancelButton_KeyPress(KeyEvent event)
|
(package private) void |
Dialog1_WindowClosing(WindowEvent event)
|
private void |
enableActions(boolean enable)
|
private WTContext |
getContext()
|
private String |
getDisplayName(String full_classname)
|
Applet |
getParentApplet()
Deprecated. the Applet is no longer used for setting context; the WTContext class is now used for setting context Supported API: false |
Class |
getSelectedClass()
Method getSelectedClass returns the Class
the user of this dialog has selected. |
private void |
initCreateableClasses()
|
private void |
initIconCache()
|
private void |
initMultiList()
|
private void |
initResources()
Deprecated. This method is no longer necessary; support for localized resources is handled by the WTMessage class Supported API: false |
boolean |
isCanceled()
Method isCanceled returns a boolean
indicating whether or not this dialog was canceled. |
private boolean |
isValidClass(String class_name)
Helper method to determine if a given fully-qualified classname corresponds to a valid Java class. |
private void |
localize()
|
(package private) void |
multiList1_actionPerformed(ActionEvent event)
|
(package private) void |
multiList1_itemStateChanged(ItemEvent event)
|
(package private) void |
okButton_Action(ActionEvent event)
|
(package private) void |
okButton_KeyPress(KeyEvent event)
|
private void |
populateMultiList()
|
protected void |
processCancelCommand()
|
protected void |
processOkCommand()
|
void |
setParentApplet(Applet parent_applet)
Deprecated. the Applet is no longer used for setting context; the WTContext class is now used for setting context Supported API: false |
void |
show()
|
private void |
showMessageDialog(String message,
boolean modal)
|
private void |
updateColors(Color color)
|
private void |
updateSelectedClass()
|
Methods inherited from class java.awt.Dialog |
dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
boolean fComponentsAdjusted
WTMultiList multiList1
Label classTypeLabel
TextField classTypeValue
symantec.itools.awt.shape.HorizontalLine horizontalLine1
Panel buttonPanel
Button okButton
Button cancelButton
private static int TYPE
private static com.objectspace.jgl.HashMap classesHashMap
private Applet parentApplet
private IconCache iconCache
private boolean isCanceled
private ThreadGroup contextGroup
private Class selectedClass
private Object initLock
private boolean initComplete
private boolean initSuccessful
private Exception initException
private boolean actionsDisabled
private Object disableActions
private boolean isShowing
private Object showDialog
private static ResourceBundle resources
private static String RESOURCES
Constructor Detail |
public CreationClassDialog(Frame parent, boolean modal)
CreationClassDialog
.
parent
- the owner of this dialogmodal
- if true
, actions on the
parent frame are blocked
public CreationClassDialog(Frame parent, String title, boolean modal)
CreationClassDialog
.
parent
- the owner of this dialogtitle
- title of this dialogmodal
- if true
, actions on the
parent frame are blocked
Method Detail |
public void addNotify()
private void initResources()
ResourceBundles
used for localizing labels
and error messages.
private void localize()
private void initMultiList()
public void show()
void Dialog1_WindowClosing(WindowEvent event)
private void initCreateableClasses() throws WTException
WTException
private void initIconCache()
private String getDisplayName(String full_classname)
public Class getSelectedClass()
getSelectedClass
returns the Class
the user of this dialog has selected. The returned class will
implement the FolderEntry
interface.
Class
selected by the userClass
,
Supported API: true
public void setParentApplet(Applet parent_applet)
setParentApplet
sets the Applet
that
provides context for this dialog. The parent Applet
is
is used in finding the appropriate WTContext
for this
dialog.
parent_applet
- the Applet
providing context for
this dialoggetParentApplet()
,
Applet
,
WTContext
public Applet getParentApplet()
getParentApplet
returns the Applet
which
provides context for this dialog. The parent Applet
is
is used in finding the appropriate WTContext
for this
dialog.
Applet
providing context for this dialogsetParentApplet(java.applet.Applet)
,
Applet
,
WTContext
protected void processCancelCommand()
protected void processOkCommand()
void cancelButton_Action(ActionEvent event)
void okButton_Action(ActionEvent event)
void multiList1_itemStateChanged(ItemEvent event)
private void updateSelectedClass()
private WTContext getContext()
private void populateMultiList()
void multiList1_actionPerformed(ActionEvent event)
private void enableActions(boolean enable)
void okButton_KeyPress(KeyEvent event)
void cancelButton_KeyPress(KeyEvent event)
public boolean isCanceled()
isCanceled
returns a boolean
indicating whether or not this dialog was canceled.
true
, this dialog was canceled
private void updateColors(Color color)
private void showMessageDialog(String message, boolean modal)
private boolean isValidClass(String class_name)
class_name
- the fully-qualified classname of the class
true
if the given String
corresponds to
a valid class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |