Added IDs for save and cancel button
Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
This commit is contained in:
@@ -92,8 +92,8 @@ public class CommonDialogWindow extends Window {
|
||||
buttonsLayout.setSizeFull();
|
||||
buttonsLayout.setSpacing(true);
|
||||
|
||||
saveButton = SPUIComponentProvider.getButton(SPUIComponetIdProvider.SYSTEM_CONFIGURATION_SAVE, "save", "", "",
|
||||
true, FontAwesome.SAVE, SPUIButtonStyleBorderWithIcon.class);
|
||||
saveButton = SPUIComponentProvider.getButton(SPUIComponetIdProvider.SAVE_BUTTON, "save", "", "", true,
|
||||
FontAwesome.SAVE, SPUIButtonStyleBorderWithIcon.class);
|
||||
saveButton.setSizeUndefined();
|
||||
if (null != saveButtonClickListener) {
|
||||
saveButton.addClickListener(saveButtonClickListener);
|
||||
@@ -104,8 +104,8 @@ public class CommonDialogWindow extends Window {
|
||||
buttonsLayout.setComponentAlignment(saveButton, Alignment.MIDDLE_RIGHT);
|
||||
buttonsLayout.setExpandRatio(saveButton, 1.0F);
|
||||
|
||||
cancelButton = SPUIComponentProvider.getButton(SPUIComponetIdProvider.SYSTEM_CONFIGURATION_CANCEL, "cancel", "",
|
||||
"", true, FontAwesome.TIMES, SPUIButtonStyleBorderWithIcon.class);
|
||||
cancelButton = SPUIComponentProvider.getButton(SPUIComponetIdProvider.CANCEL_BUTTON, "cancel", "", "", true,
|
||||
FontAwesome.TIMES, SPUIButtonStyleBorderWithIcon.class);
|
||||
cancelButton.setSizeUndefined();
|
||||
if (null != cancelButtonClickListener) {
|
||||
cancelButton.addClickListener(cancelButtonClickListener);
|
||||
|
||||
@@ -501,6 +501,16 @@ public final class SPUIComponetIdProvider {
|
||||
*/
|
||||
public static final String SYSTEM_CONFIGURATION_SAVE = "system.configuration.save";
|
||||
|
||||
/**
|
||||
* ID for save button in pop-up-windows instance of commonDialogWindow
|
||||
*/
|
||||
public static final String SAVE_BUTTON = "common.dialog.window.save";
|
||||
|
||||
/**
|
||||
* ID for cancel button in pop-up-windows instance of commonDialogWindow
|
||||
*/
|
||||
public static final String CANCEL_BUTTON = "common.dialog.window.cancel";
|
||||
|
||||
/**
|
||||
* Cancel button is.
|
||||
*/
|
||||
@@ -681,12 +691,12 @@ public final class SPUIComponetIdProvider {
|
||||
* custom filter - update button id.
|
||||
*/
|
||||
public static final String CUSTOM_FILTER_DETAIL_LINK = "custom.filter.detail.link";
|
||||
|
||||
|
||||
/**
|
||||
* DistributionSet - Metadata button id.
|
||||
*/
|
||||
public static final String DS_METADATA_DETAIL_LINK = "distributionset.metadata.detail.link";
|
||||
|
||||
|
||||
/**
|
||||
* Software Module - Metadata button id.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user