public void setListHeight(String listHeight) { diskListPanel.setHeight(listHeight); }
@Override public void setHeight(String height) { if (height.isEmpty() && !getElement().getStyle().getHeight().isEmpty()) { /* * Changing from defined to undefined size -> should do a size init * to take page length into account again */ sizeNeedsInit = true; } super.setHeight(height); }
@Override public void clearTabs() { final Iterator<Widget> it = tabPanel.iterator(); while (it.hasNext()) { final Widget w = it.next(); if (w == getActiveTab()) { tabPanel.setHeight(w.getOffsetHeight() + "px"); } if (w != preloader) { w.getElement().getStyle().setDisplay(Display.NONE); } } }
@Override public void noData() { FlowPanel noDataPanel = GWT.create(FlowPanel.class); noDataPanel.setWidth(width + "px"); noDataPanel.setHeight(height + "px"); Label lblNoData = GWT.create(Label.class); lblNoData.setText(C3DisplayerConstants.INSTANCE.common_noData()); noDataPanel.add(lblNoData); displayerPanel.clear(); displayerPanel.add(noDataPanel); }
@Override public void onResize() { htmlPanel.setHeight(getParent().getParent().getOffsetHeight() + "px"); editor.onResize(); }
@Override public void onResize() { htmlPanel.setHeight(getParent().getParent().getOffsetHeight() + "px"); editor.onResize(); }
@Override public void onResize() { htmlPanel.setHeight(getParent().getParent().getOffsetHeight() + "px"); editor.onResize(); }
@Override public void onResize() { htmlPanel.setHeight(getParent().getParent().getOffsetHeight() + "px"); editor.onResize(); }
@Override public void onResize() { htmlPanel.setHeight(getParent().getParent().getOffsetHeight() + "px"); editor.onResize(); }
@Override public void onResize() { htmlPanel.setHeight(getParent().getParent().getOffsetHeight() + "px"); editor.onResize(); }
private void updateScrollPanelSize() { Element topologyComponent = DOM.getElementById("TopologyComponent"); int topoHeight = topologyComponent.getOffsetHeight(); int containerHeight = topoHeight - (m_focusedContainer.getElement().getOffsetTop() + 5); int tableHeight = m_focusedContainer.getOffsetHeight(); if(containerHeight >= 0){ m_scrollContainer.setHeight("" + Math.min(containerHeight, tableHeight) + "px"); if(tableHeight > containerHeight){ m_scrollContainer.getElement().getStyle().setOverflowY(Style.Overflow.SCROLL); } else{ m_scrollContainer.getElement().getStyle().setOverflowY(Style.Overflow.HIDDEN); } } }
private void updateScrollPanelSize() { Element topologyComponent = DOM.getElementById("TopologyComponent"); int topoHeight = topologyComponent.getOffsetHeight(); int containerHeight = topoHeight - (m_focusedContainer.getElement().getOffsetTop() + 5); int tableHeight = m_focusedContainer.getOffsetHeight(); if(containerHeight >= 0){ m_scrollContainer.setHeight("" + Math.min(containerHeight, tableHeight) + "px"); if(tableHeight > containerHeight){ m_scrollContainer.getElement().getStyle().setOverflowY(Style.Overflow.SCROLL); } else{ m_scrollContainer.getElement().getStyle().setOverflowY(Style.Overflow.HIDDEN); } } }
@Override public void setChangesPanelView(ChangesPanelView changesPanelView) { FlowPanel flowPanel = new FlowPanel(); flowPanel.ensureDebugId("git-compare-window-changed-files"); flowPanel.setWidth("600px"); flowPanel.setHeight("345px"); flowPanel.add((Widget) changesPanelView); this.setWidget(flowPanel); }
@Override public void nodata() { FlowPanel noDataPanel = new FlowPanel(); noDataPanel.setWidth(width + "px"); noDataPanel.setHeight(height + "px"); noDataPanel.add(new Label(GoogleDisplayerConstants.INSTANCE.common_noData())); super.showDisplayer(noDataPanel); }
@Override public void nodata() { FlowPanel noDataPanel = new FlowPanel(); noDataPanel.setWidth(width + "px"); noDataPanel.setHeight(height + "px"); noDataPanel.add(new Label(GoogleDisplayerConstants.INSTANCE.common_noData())); super.showDisplayer(noDataPanel); }
@Override protected void initDisplayer() { JSONValue jsonValue = JSONParser.parseStrict( formContent ); JSONObject jsonObject = jsonValue.isObject(); if (jsonObject != null) { formContainer.setWidth("100%"); formContainer.setHeight("400px"); JSONValue jsonDestination = jsonObject.get( "destination" ); if (jsonDestination == null) return; String destination = jsonDestination.isString().stringValue(); JSONObject jsonParams = jsonObject.get( "params" ).isObject(); if (jsonParams == null) return; Map<String, String> params = jsniHelper.parseParams( jsonParams ); String taskStatus = params.get("taskStatus"); placeManagerFormActivitySearcher.findFormActivityWidget(destination, formContainer); if ("InProgress".equals( taskStatus )) { setFormParamsEvent.fire(new SetFormParamsEvent(params, false)); } else { setFormParamsEvent.fire(new SetFormParamsEvent(params, true)); } } }
@Override protected void initDisplayer() { JSONValue jsonValue = JSONParser.parseStrict( formContent ); JSONObject jsonObject = jsonValue.isObject(); if (jsonObject != null) { formContainer.setWidth("100%"); formContainer.setHeight("400px"); JSONValue jsonDestination = jsonObject.get( "destination" ); if (jsonDestination == null) return; String destination = jsonDestination.isString().stringValue(); JSONObject jsonParams = jsonObject.get( "params" ).isObject(); if (jsonParams == null) return; Map<String, String> params = jsniHelper.parseParams( jsonParams ); placeManagerFormActivitySearcher.findFormActivityWidget(destination, formContainer); setFormParamsEvent.fire(new SetFormParamsEvent(params, false)); } }
private void createRemoveTagIcon( final HorizontalPanel panel ) { final FlowPanel iconPanel = new FlowPanel(); iconPanel.setWidth( "10px" ); iconPanel.setHeight( "10px" ); final Icon icon = generateRemoveIcon( tag.getText() ); panel.addDomHandler( new MouseOverHandler() { @Override public void onMouseOver( MouseOverEvent event ) { iconPanel.add( icon ); } }, MouseOverEvent.getType() ); panel.addDomHandler( new MouseOutHandler() { @Override public void onMouseOut( MouseOutEvent event ) { iconPanel.remove( icon ); } }, MouseOutEvent.getType() ); panel.add( iconPanel ); }
FlowPanel panel = new FlowPanel(); panel.setWidth("24px"); panel.setHeight("24px");