|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Dialog
com.tensegrity.gui.swt.dialog.SwtBaseDialog
com.tensegrity.gui.swt.dialog.SWTElementConflictDialog
TODO IMPLEMENT THIS DIALOG!!!
| Field Summary | |
static int |
CONFLICT_LAYOUTS
CONFLICT_LAYOUTS |
static int |
CONFLICT_RULES
CONFLICT_RULES |
| Fields inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog |
resourceClass, resourcePath |
| Constructor Summary | |
SWTElementConflictDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
int style,
boolean showRules,
Rule[] conflictRules,
RuleRegistry rrDoc,
boolean showLayout,
java.lang.String[] conflictLayouts,
LayoutController lcSource,
LayoutController lcTarget)
Creates and initializes the dialog used in order to resolve rules and layout conflicts. |
|
SWTElementConflictDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
int style,
java.lang.String keyTitle,
java.lang.String keyDescription,
boolean showRules,
Rule[] conflictRules,
RuleRegistry rrDoc,
boolean showLayout,
java.lang.String[] conflictLayouts,
LayoutController lcSource,
LayoutController lcTarget)
Creates and initializes the dialog used in order to resolve rules and layout conflicts. |
|
| Method Summary | |
int |
getIndex(Rule rule)
Returns the index of the given rule |
java.lang.String |
getNewName(int conflictType,
int index)
Returns the new name for a rule, if the option "rename inserted" or "use existing" has been chosen. |
int |
getOption(int conflictType,
int index)
Returns the option the user has selected for the rule with the given index |
Rule |
getRule(int index)
Returns the rule with the given index |
protected org.eclipse.swt.layout.GridData |
getTextCompositeLayoutData()
Subclasses should override this method in order to set the Layout Data Use for the text composite of the base dialog. |
void |
resolveLayoutConflicts(VisualGraphObject[] VGOs)
Resolves the layout conflicts by using the selected options after displaying the dialog. |
void |
resolveRuleConflict(VisualGraphView vgv,
VisualGraphObject[] VGOs)
Resolves the rule conflicts by using the selected options after displaying the dialog. |
void |
setDefaultOption(int conflictType,
int option)
Sets the default option for a given conflict type |
| Methods inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog |
applyEvList, dispose, getDialog, getUIManager, installEvList, keyPressed, keyReleased, setDefaultResourceClassAndURL, setDescriptionText, setResourceClassAndURL, setTitleText, show |
| Methods inherited from class org.eclipse.swt.widgets.Dialog |
checkSubclass, getParent, getStyle, getText, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CONFLICT_RULES
CONFLICT_RULES
public static final int CONFLICT_LAYOUTS
CONFLICT_LAYOUTS
| Constructor Detail |
public SWTElementConflictDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
int style,
java.lang.String keyTitle,
java.lang.String keyDescription,
boolean showRules,
Rule[] conflictRules,
RuleRegistry rrDoc,
boolean showLayout,
java.lang.String[] conflictLayouts,
LayoutController lcSource,
LayoutController lcTarget)
Creates and initializes the dialog used in order to resolve rules and layout conflicts.
uiManager - the UIManager used for Strings localizationdisplay - a Display required for example to
create the logo used on the dialog, or to create Fontsstyle - the style of the internal Shell
representing the dialogkeyTitle - the key used for the localized title of the dialogkeyDescription - the key used for the localized description of the dialogshowRules - indicates whether or not the rules section of the dialog is to
be displayedconflictRules - the conflicting rulesrrDoc - the RuleRegistry which might be updated
depending upon the user choiceshowLayout - indicates whether or not the layout section of the dialog is
to be displayedconflictLayouts - the conflicting layoutslcSource - current LayoutControllerlcTarget - LayoutController after the layout conflicts
have been resolved
public SWTElementConflictDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
int style,
boolean showRules,
Rule[] conflictRules,
RuleRegistry rrDoc,
boolean showLayout,
java.lang.String[] conflictLayouts,
LayoutController lcSource,
LayoutController lcTarget)
Creates and initializes the dialog used in order to resolve rules and
layout conflicts.
Keys for the title and description of this dialog are respectively
GUIItem.DIALOG_ELEMENTCONFLICT_TITLE and
GUIItem.DIALOG_ELEMENTCONFLICT_DESCRIPTION.
uiManager - the UIManager used for Strings localizationdisplay - a Display required for example to
create the logo used on the dialog, or to create Fontsstyle - the style of the internal Shell
representing the dialogshowRules - indicates whether or not the rules section of the dialog is to
be displayedconflictRules - the conflicting rulesrrDoc - the RuleRegistry which might be updated
depending upon the user choiceshowLayout - indicates whether or not the layout section of the dialog is
to be displayedconflictLayouts - the conflicting layoutslcSource - current LayoutControllerlcTarget - LayoutController after the layout conflicts
have been resolved| Method Detail |
protected org.eclipse.swt.layout.GridData getTextCompositeLayoutData()
SwtBaseDialog
Subclasses should override this method in order to set the Layout Data
Use for the text composite of the base dialog. The text composite is a
containing both the title and
description of the dialog. It is especially usefull to override this
method when the description has to be wrapped.
Composite
getTextCompositeLayoutData in class SwtBaseDialog
public java.lang.String getNewName(int conflictType,
int index)
conflictType - The type of the requested conflict:
CONFLICT_RULES or
CONFLICT_LAYOUTSindex - The index of the rule in the array passed to the constructor
public Rule getRule(int index)
index - The index of the rule to return
public int getIndex(Rule rule)
rule - The rule to return the index of
public int getOption(int conflictType,
int index)
conflictType - The type of the requested conflict:
CONFLICT_RULES or
CONFLICT_LAYOUTSindex - The index of the rule in the array passed to the constructor
public void setDefaultOption(int conflictType,
int option)
conflictType - The type of the requested conflict:
CONFLICT_RULES or
CONFLICT_LAYOUTSoption - The default option for the given conflict typepublic void resolveLayoutConflicts(VisualGraphObject[] VGOs)
VGOs - The VisualGraphObjects that have been inserted
public void resolveRuleConflict(VisualGraphView vgv,
VisualGraphObject[] VGOs)
vgv - The VisualGraphView containing the elementsVGOs - The VisualGraphObjects that have been inserted
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||