|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDesigner
Nested Class Summary | |
---|---|
static interface |
IDesigner.BuilderCallUpdater
|
Field Summary | |
---|---|
static int |
JAVA_FILE
|
static int |
MODEL_FILE
|
static int |
SERVABLE_FILE
|
Method Summary | |
---|---|
void |
addBuilderCall(BuilderCall bc,
BuilderCall after)
this method can be called to add a BuilderCall that is created in a layout listener. |
void |
builderInputsChanged()
this method should be called whenever the BuilderInputs to a BuilderCall is changed in a listener. |
java.lang.Object |
callMethod(java.lang.String className,
java.lang.String methodName,
java.lang.Object[] args)
An ugly back door for getting whatever designer method you need called from in your coordinator |
com.bowstreet.editor.BuilderCallList |
getBuilderCallList()
Get the same instance of BuilderCallList that the designer is using. |
SourceModel |
getSourceModel()
Get the source Model. |
void |
handleException(java.lang.String message,
java.lang.Throwable e)
Call this method when you are holding an exception that you need to notify the user of (via a popup dialog). |
BuilderCall |
insertBuilderCall(BuilderDef bDef,
BuilderCall insertBefore)
|
BuilderCall |
insertBuilderCallUsingDialog(BuilderDef def,
IDesigner.BuilderCallUpdater updater,
GenElement modifee,
BuilderCall insertBefore)
|
void |
openBuilderCallDialog(BuilderCall builder)
Convenience method to open a builder in a dialog. |
void |
openBuilders(BuilderCall[] builders,
boolean setControlFocus)
|
void |
openCheatSheet(java.lang.String cheatSheet)
Cause the Designer to activate the cheat sheet view if it isn't activated, and open the specified cheat sheet in that view. |
boolean[] |
openCheckboxListMessageDialog(java.lang.String title,
java.lang.String message,
java.lang.String[] choices,
boolean[] defaultSelection)
Creates an input dialog with OK and Cancel buttons and a checkboxlist box. |
void |
openError(java.lang.String title,
java.lang.String message)
Convenience method to open a standard error dialog. |
void |
openFile(java.lang.String projectRelativePath,
int type)
Convenience method to open a file in an editor. |
void |
openInformation(java.lang.String title,
java.lang.String message)
Convenience method to open a standard information dialog. |
java.lang.String |
openInputQuestion(java.lang.String title,
java.lang.String message,
java.lang.String initialValue)
Creates an input dialog with OK and Cancel buttons. |
int |
openPropertyDialog(IModelEditorPropertyListener pListener,
java.lang.String pId)
Convenience method to open a builder in a dialog. |
boolean |
openQuestion(java.lang.String title,
java.lang.String message)
Convenience method to open a simple Yes/No question dialog. |
int |
openRadioMessageDialog(java.lang.String title,
java.lang.String message,
java.lang.String[] choices,
int defaultSelection)
Creates an input dialog with OK and Cancel buttons and a radio choose box. |
java.lang.String[] |
openTextListMessageDialog(java.lang.String title,
java.lang.String message,
java.lang.String[] labels,
java.lang.String[] defaultValues,
java.lang.String[] validChars,
java.lang.String[] invalidChars)
Creates an input dialog with OK and Cancel buttons and some text edit fields. |
void |
openWarning(java.lang.String title,
java.lang.String message)
Convenience method to open a standard warning dialog. |
void |
refreshWorkspace(java.lang.String path)
Call this if you have created or deleted a file. |
void |
removeBuilderCall(BuilderCall bc)
this method can be called to delete a BuilderCall is changed in a layout listener. |
void |
replaceBuilderCall(BuilderCall bc)
this method can be called to replace a BuilderCall that is changed in a layout listener. |
Field Detail |
---|
static final int JAVA_FILE
static final int MODEL_FILE
static final int SERVABLE_FILE
Method Detail |
---|
void addBuilderCall(BuilderCall bc, BuilderCall after) throws java.lang.Exception
BuilderCall
that is created in a layout listener.
BuilderCall
- bc the builder call to addBuilderCall
- after the builder call to add this after if null it's added to the end of the list
java.lang.Exception
void builderInputsChanged() throws java.lang.Exception
BuilderInputs
to a BuilderCall
is changed in a listener.
java.lang.Exception
java.lang.Object callMethod(java.lang.String className, java.lang.String methodName, java.lang.Object[] args) throws java.lang.Exception
className
- methodName
- args
-
java.lang.Exception
com.bowstreet.editor.BuilderCallList getBuilderCallList()
SourceModel getSourceModel()
void handleException(java.lang.String message, java.lang.Throwable e)
message
- - optional message to display. If null, use the message
in the Exception.e
- - exception. May be a CoreException if coming from
Eclipse code.BuilderCall insertBuilderCall(BuilderDef bDef, BuilderCall insertBefore)
BuilderCall insertBuilderCallUsingDialog(BuilderDef def, IDesigner.BuilderCallUpdater updater, GenElement modifee, BuilderCall insertBefore)
void openBuilderCallDialog(BuilderCall builder)
builder
- the buildercall to openvoid openBuilders(BuilderCall[] builders, boolean setControlFocus)
void openCheatSheet(java.lang.String cheatSheet)
cheatSheet
- boolean[] openCheckboxListMessageDialog(java.lang.String title, java.lang.String message, java.lang.String[] choices, boolean[] defaultSelection)
title
- the dialog title, or null
if nonemessage
- the dialog message, or null
if nonechoices
- an array of strings that are the choicesdefaultSelection
- a boolean array that identifies the default choices
void openError(java.lang.String title, java.lang.String message)
title
- the dialog's title, or null
if nonemessage
- the messagevoid openFile(java.lang.String projectRelativePath, int type)
projectRelativePath
- the relative path to the file to opentype
- of file JAVA_FILE, MODEL_FILE, SERVABLE_FILEvoid openInformation(java.lang.String title, java.lang.String message)
title
- the dialog's title, or null
if nonemessage
- the messagejava.lang.String openInputQuestion(java.lang.String title, java.lang.String message, java.lang.String initialValue)
title
- the dialog title, or null
if nonemessage
- the dialog message, or null
if noneinitialValue
- the initial input value, or null
if none
(equivalent to the empty string)
int openPropertyDialog(IModelEditorPropertyListener pListener, java.lang.String pId)
listener
- the property listener that provides the dataId
- of the propertyboolean openQuestion(java.lang.String title, java.lang.String message)
title
- the dialog's title, or null
if nonemessage
- the message
true
if the user presses the OK button,
false
otherwiseint openRadioMessageDialog(java.lang.String title, java.lang.String message, java.lang.String[] choices, int defaultSelection)
title
- the dialog title, or null
if nonemessage
- the dialog message, or null
if nonechoices
- an array of strings that are the choicesdefaultSelection
- the 0 based index of the default selected choice
java.lang.String[] openTextListMessageDialog(java.lang.String title, java.lang.String message, java.lang.String[] labels, java.lang.String[] defaultValues, java.lang.String[] validChars, java.lang.String[] invalidChars)
title
- the dialog title, or null
if nonemessage
- the dialog message, or null
if nonelabels
- an array of strings that are the choicesdefaultValues
- a String array that identifies the default valuevalidChars
- a String array that identifies the valid chars for entry, null means all are validinvalidChars
- a String array that identifies the invalid chars for entry, null means all are valid
void openWarning(java.lang.String title, java.lang.String message)
title
- the dialog's title, or null
if nonemessage
- the messagevoid refreshWorkspace(java.lang.String path)
path
- void removeBuilderCall(BuilderCall bc) throws java.lang.Exception
BuilderCall
is changed in a layout listener.
java.lang.Exception
void replaceBuilderCall(BuilderCall bc) throws java.lang.Exception
BuilderCall
that is changed in a layout listener.
java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |