Fixed dimension of panel

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-open-widget@84255 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-10-25 12:54:53 +00:00 committed by Giancarlo Panichi
parent 0490ed2fa8
commit 40133e35d5
3 changed files with 19 additions and 6 deletions

View File

@ -24,7 +24,9 @@ import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
*
*/
public class TabResourcesSelectionCard extends WizardCard {
protected final String GRIDWIDTH = "538px";
protected final String GRIDHEIGHT = "430px";
protected TabResourcesSelectionCard thisCard;
protected TDOpenSession tdOpenSession;
protected TabResourcesSelectionPanel tabResourcesSelectionPanel;
@ -36,8 +38,11 @@ public class TabResourcesSelectionCard extends WizardCard {
this.tdOpenSession = tdOpenSession;
thisCard = this;
this.tabResourcesSelectionPanel = new TabResourcesSelectionPanel(res);
tabResourcesSelectionPanel = new TabResourcesSelectionPanel(res);
tabResourcesSelectionPanel.setResize(false);
tabResourcesSelectionPanel.setSize(GRIDWIDTH, GRIDHEIGHT);
tabResourcesSelectionPanel
.addSelectionHandler(new SelectionHandler<TabResource>() {

View File

@ -56,6 +56,7 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
*/
public class TabResourcesSelectionPanel extends ContentPanel implements HasSelectionHandlers<TabResource> {
private static final TabResourcesProperties properties = GWT.create(TabResourcesProperties.class);
protected static final ColumnConfig<TabResource, String> nameColumn = new ColumnConfig<TabResource, String>(properties.name(), 50, "Name");
@ -155,6 +156,7 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec
grid.setLoadMask(true);
grid.setColumnReordering(true);
SelectHandler sh = new SelectHandler() {
@Override
public void onSelect(SelectEvent event) {

View File

@ -34,7 +34,11 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
*
*/
public class WizardWindow extends Window {
protected final String WIZARDWIDTH="640px";
protected final String WIZARDHEIGHT="480px";
protected final boolean WIZARRESIZABLE=false;
protected ArrayList<WizardCard> cardStack = new ArrayList<WizardCard>();
protected TextButton backButton;
@ -68,7 +72,7 @@ public class WizardWindow extends Window {
protected boolean finish=true;
/**
* Create a new Wizard Window with the specified title.
* @param title the wizard window title.
* @param title the wizard window title.height
*/
public WizardWindow(String title)
{
@ -77,8 +81,10 @@ public class WizardWindow extends Window {
this.eventBus= new SimpleEventBus();
Log.info(title);
//setModal(true);
setResizable(true);
setCollapsible(true);
setResizable(WIZARRESIZABLE);
setCollapsible(false);
setWidth(WIZARDWIDTH);
setHeight(WIZARDHEIGHT);
listeners = new ArrayList<WizardListener>();