Updated Ribbon
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@113671 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
cd6c889a06
commit
5f81ff3a85
|
@ -15,16 +15,16 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
|||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ReplaceDialog extends Window {
|
||||
public class ReplaceAllDialog extends Window {
|
||||
protected String WIDTH = "500px";
|
||||
protected String HEIGHT = "150px";
|
||||
protected ReplacePanel ReplacePanel;
|
||||
protected ReplaceAllPanel ReplacePanel;
|
||||
protected CellData cellData;
|
||||
protected TRId trId;
|
||||
protected EventBus eventBus;
|
||||
|
||||
|
||||
public ReplaceDialog(CellData cellData, TRId trId, EventBus eventBus) {
|
||||
public ReplaceAllDialog(CellData cellData, TRId trId, EventBus eventBus) {
|
||||
initWindow();
|
||||
this.cellData = cellData;
|
||||
this.trId = trId;
|
||||
|
@ -38,9 +38,9 @@ public class ReplaceDialog extends Window {
|
|||
setHeight(HEIGHT);
|
||||
setBodyBorder(false);
|
||||
setResizable(false);
|
||||
setHeadingText("Replace Value");
|
||||
setHeadingText("Replace All");
|
||||
setClosable(true);
|
||||
getHeader().setIcon(ResourceBundle.INSTANCE.replace());
|
||||
getHeader().setIcon(ResourceBundle.INSTANCE.replaceAll());
|
||||
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ public class ReplaceDialog extends Window {
|
|||
}
|
||||
|
||||
protected void create() {
|
||||
ReplacePanel replacePanel = new ReplacePanel(this, trId, cellData,
|
||||
ReplaceAllPanel replacePanel = new ReplaceAllPanel(this, trId, cellData,
|
||||
eventBus);
|
||||
add(replacePanel);
|
||||
}
|
|
@ -58,7 +58,7 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
|||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class ReplacePanel extends FramedPanel implements
|
||||
public class ReplaceAllPanel extends FramedPanel implements
|
||||
DimensionRowSelectionListener, MonitorDialogListener {
|
||||
private static final String REPLACEMENT = "Replacement";
|
||||
private static final String CURRENT_VALUE = "Current Value";
|
||||
|
@ -70,7 +70,7 @@ public class ReplacePanel extends FramedPanel implements
|
|||
private EventBus eventBus;
|
||||
private TRId trId;
|
||||
private CellData cellData;
|
||||
private ReplaceDialog parent;
|
||||
private ReplaceAllDialog parent;
|
||||
private ColumnData column;
|
||||
|
||||
private DimensionRow dimensionRow;
|
||||
|
@ -87,7 +87,7 @@ public class ReplacePanel extends FramedPanel implements
|
|||
private TextButton btnClose;
|
||||
private boolean isDimension;
|
||||
|
||||
public ReplacePanel(ReplaceDialog parent, TRId trId, CellData cellData,
|
||||
public ReplaceAllPanel(ReplaceAllDialog parent, TRId trId, CellData cellData,
|
||||
EventBus eventBus) {
|
||||
this.parent = parent;
|
||||
this.cellData = cellData;
|
||||
|
@ -178,7 +178,7 @@ public class ReplacePanel extends FramedPanel implements
|
|||
}
|
||||
|
||||
btnApply = new TextButton("Replace");
|
||||
btnApply.setIcon(ResourceBundle.INSTANCE.replace());
|
||||
btnApply.setIcon(ResourceBundle.INSTANCE.replaceAll());
|
||||
btnApply.setIconAlign(IconAlign.RIGHT);
|
||||
btnApply.setTitle("Replace Value");
|
||||
btnApply.addSelectHandler(new SelectHandler() {
|
|
@ -77,6 +77,13 @@ public interface ResourceBundle extends ClientBundle {
|
|||
@Source("column-replace_32.png")
|
||||
ImageResource replace32();
|
||||
|
||||
@Source("column-replace-all.png")
|
||||
ImageResource replaceAll();
|
||||
|
||||
@Source("column-replace-all_32.png")
|
||||
ImageResource replaceAll32();
|
||||
|
||||
|
||||
@Source("column-replace-batch.png")
|
||||
ImageResource replaceBatch();
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 766 B |
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 766 B |
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue