|
|||||||||||
| 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.SwtOpenFileConflictDialog
TODO - IMPLEMENT THIS DIOALOG !
WARNING! DO NOT USE THIS CLASS. IT IS NOT IMPLEMENTED.
| Field Summary |
| Fields inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog |
resourceClass, resourcePath |
| Constructor Summary | |
SwtOpenFileConflictDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
java.lang.String keyTitle,
java.lang.String keyDescription,
ElementDefinitionWrapper edw,
java.util.List layoutConflicts,
LayoutController layoutController,
boolean styleConflict,
boolean styleNameConflict,
boolean geometryConflict,
boolean rulesConflict,
java.util.List imageConflicts,
boolean showRulesOptionApplyLoaded)
Creates a new LayoutContextDialog. |
|
| Method Summary | |
int |
getGeometriesOption()
Returns the integer identifier representing the selected RadioButton. |
int |
getImagesOption()
Returns the integer identifier representing the selected RadioButton. |
int |
getLayoutContextOption()
Returns the integer identifier representing the selected RadioButton. |
java.lang.String |
getNewGeometryDescName(java.lang.String oldName)
The string for the new geometry. |
java.lang.String |
getNewGeometryItemName(java.lang.String oldName)
The string for the new geometry. |
java.lang.String |
getNewImageName(java.lang.String oldName)
The string for the new image. |
java.lang.String |
getNewLayoutContextName(java.lang.String oldName)
The string for the new layout context. |
java.lang.String |
getNewRuleName(java.lang.String oldName)
Returns the new name for a conflicting rule |
java.lang.String |
getNewStyleDescName(java.lang.String oldName)
The string for the new style. |
java.lang.String |
getNewStyleItemName(java.lang.String oldName)
The string for the new style. |
int |
getRulesOption()
Returns the integer identifier representing the selected RadioButton. |
int |
getStyleNamesOption()
At the current stage of development this only returns ElementDefinitionUtil.APPLY_LOADED
|
int |
getStylesOption()
Returns the integer identifier representing the selected RadioButton. |
void |
setGeometriesOption(int option)
Sets the option for geometry conflicts |
void |
setImageOption(int option)
Sets the option for layout context conflicts |
void |
setLayoutContextOption(int option)
Sets the option for layout context conflicts |
void |
setNewImageName(java.lang.String oldName,
java.lang.String name)
Sets the new name for the image |
void |
setNewLayoutContextName(java.lang.String oldName,
java.lang.String name)
Sets the new name for the layout context |
void |
setRulesOption(int option)
Sets the option for rules conflicts |
void |
setStyleNamesOption(int option)
Sets the option for style name conflicts |
void |
setStylesOption(int option)
Sets the option for style conflicts |
boolean |
wasCancelled()
Returns true if the user selected the cancel option. |
| Methods inherited from class com.tensegrity.gui.swt.dialog.SwtBaseDialog |
applyEvList, dispose, getDialog, getTextCompositeLayoutData, 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 |
| Constructor Detail |
public SwtOpenFileConflictDialog(UIManager uiManager,
org.eclipse.swt.widgets.Display display,
java.lang.String keyTitle,
java.lang.String keyDescription,
ElementDefinitionWrapper edw,
java.util.List layoutConflicts,
LayoutController layoutController,
boolean styleConflict,
boolean styleNameConflict,
boolean geometryConflict,
boolean rulesConflict,
java.util.List imageConflicts,
boolean showRulesOptionApplyLoaded)
LayoutContextDialog.
uiManager - ui manager reference.display - the frame to refer to.keyTitle - the uimanager key for the title of the dialog.keyDescription - the uimanager key for the description text of the
dialog.edw - the ElementDefinitionWrapperlayoutConflicts - List with names of all layout context that have
conflicts. If this list is not empty the layout
conflict panel will be shownlayoutController - the layout controller of the VisualGraphView,
used to validate the new name for a layout context.
Ignored, if layoutConflict is falsestyleConflict - true, to show the style conflict panelstyleNameConflict - true, to show the style name conflict panelgeometryConflict - true, to show the geometry conflict panelrulesConflict - true, to show the rules conflict panelimageConflicts - List with names of all images that have
conflicts. If this list is not empty the
image conflict panel will be shownshowRulesOptionApplyLoaded - true, to show the rules option "Apply Loaded"| Method Detail |
public boolean wasCancelled()
public java.lang.String getNewLayoutContextName(java.lang.String oldName)
oldName - The old name of the layout context
public java.lang.String getNewRuleName(java.lang.String oldName)
oldName - The old name of the rule
public java.lang.String getNewStyleDescName(java.lang.String oldName)
oldName - The old name of the style
public java.lang.String getNewStyleItemName(java.lang.String oldName)
oldName - The old name of the style
public java.lang.String getNewGeometryDescName(java.lang.String oldName)
oldName - The old name of the geometry
public java.lang.String getNewGeometryItemName(java.lang.String oldName)
oldName - The old name of the geometry
public java.lang.String getNewImageName(java.lang.String oldName)
oldName - The old name of the image
public int getLayoutContextOption()
RENAME you can use the getText method
to retrieve the new name for the layout context.
USE, EXISTING or
RENAME.public int getImagesOption()
RENAME you can use the getText method
to retrieve the new name for the layout context.
USE, EXISTING or
RENAME.public int getStylesOption()
USE or EXISTINGpublic int getStyleNamesOption()
At the current stage of development this only returns
ElementDefinitionUtil.APPLY_LOADED
ElementDefinitionUtil.APPLY_LOADEDpublic int getGeometriesOption()
USE or EXISTINGpublic int getRulesOption()
USE or EXISTING
public void setNewLayoutContextName(java.lang.String oldName,
java.lang.String name)
oldName - The old name of the layout contextname - the new name for the layout context
public void setNewImageName(java.lang.String oldName,
java.lang.String name)
oldName - The old name of the imagename - the new name for the imagepublic void setLayoutContextOption(int option)
option - The option to setpublic void setImageOption(int option)
option - The option to setpublic void setStylesOption(int option)
option - The option to setpublic void setStyleNamesOption(int option)
option - The option to setpublic void setGeometriesOption(int option)
option - The option to setpublic void setRulesOption(int option)
option - The option to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||