ref 6078:TDM - Create a new widget to support operations's invocation on DataMiner
https://support.d4science.org/issues/6078 Updated to support DataMiner git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/data-miner-manager-widget@146323 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d6cfdeeb4e
commit
99602386b2
|
@ -415,10 +415,14 @@ public class TabItem extends HBoxLayoutContainer {
|
|||
|
||||
public void showCancelButton() {
|
||||
removeBtn.setVisible(true);
|
||||
forceLayout();
|
||||
onResize();
|
||||
}
|
||||
|
||||
public void hideCancelButton() {
|
||||
removeBtn.setVisible(false);
|
||||
forceLayout();
|
||||
onResize();
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
|
|
|
@ -114,6 +114,7 @@ public class TabularListFld extends AbstractFld {
|
|||
int pos = items.indexOf(upperItem);
|
||||
if (pos == 0) {
|
||||
upperItem.showCancelButton();
|
||||
|
||||
TabItem item = new TabItem(this, tabPar, false);
|
||||
items.add(1, item);
|
||||
vp.insert(item, 1);// don't use new
|
||||
|
|
Loading…
Reference in New Issue