public PositionsListeWidget() { this.setWidth("100%"); this.setHeight("100%"); links = UIFactory.getVLayout("70%", "500px"); rechts = UIFactory.getVLayout("30%", "100%"); this.setBackgroundColor("#CCFFCC"); Positionsliste einkaufArtikel = new Positionsliste(); Artikel neuerArtikel; try { neuerArtikel = Bauteil.erzeugeBauteil(20, 3, 2, "zweiterTyp", "schlecht"); einkaufArtikel.erfassePosition(neuerArtikel, 500, 1000); neuerArtikel = Bauteil.erzeugeBauteil(20, 3, 2, "dritter", "schlecht"); einkaufArtikel.erfassePosition(neuerArtikel, 500, 1000); } catch (InstanceCreationException e) { // TODO Auto-generated catch block e.printStackTrace(); } einkaufsTabelle = new PositionsWidget(); // Create a table to layout the form options FlexTable layout = new FlexTable(); layout.setCellSpacing(6); FlexCellFormatter cellFormatter = layout.getFlexCellFormatter(); // Add a title to the form layout.setHTML(0, 0, "Gesamtverbrauch"); cellFormatter.setColSpan(0, 0, 2); cellFormatter.setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER); txtGesamtkosten = UIFactory.getStyledTextBox("TB1", true); txtLagerbedarf = UIFactory.getStyledTextBox("TB1", true); // Add some standard form options layout.setHTML(1, 0, "Gesamtkosten:"); layout.setWidget(1, 1, txtGesamtkosten); layout.setHTML(2, 0, "Lagerbedarf:"); layout.setWidget(2, 1, txtLagerbedarf); // Wrap the content in a DecoratorPanel // DecoratorPanel gesamt = new DecoratorPanel(); Canvas gesamt = new Canvas(); gesamt.setWidth("100%"); // gesamt.setWidget(layout); gesamt.addChild(layout); auswahl = new AuswahlEinkaufWidget(); // add Members to left and right side links.addMember(UIFactory.getStyledLabel("Einkaufsartikel", 30, 30)); links.addMember(einkaufsTabelle); rechts.addMember(auswahl); rechts.addMember(gesamt); this.addMember(links); this.addMember(rechts); }
public AssetCanvas(final FormItem formItem) { setWidth(100); setAlign(Alignment.CENTER); previewContainer = new Canvas(); addMember(previewContainer); previewContainer.setWidth(100); previewContainer.setHeight(100); previewContainer.setBorder("1px solid #a6abb4"); imageUpdateButton = new IButton("Update Artifact"); imageUpdateButton.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { String formItemName = formItem.getName(); ((DynamicEntityDataSource) formItem.getForm().getDataSource()) .getFormItemCallbackHandlerManager() .getFormItemCallback(formItemName) .execute(formItem); } }); addMember(imageUpdateButton); if (formItem.getDisabled()) { imageUpdateButton.setVisible(false); } }
private void findAncestorsOfRequestee() { Canvas c = requestee; while (c != null) { ancestors.add(c); c = c.getParentElement(); } }
public void refreshCarouselInfo() { if (this.showFooter && (this.carouselHolder != null)) { if (this.carouselActionDisableOverride) { // this.listGrid.setSelectionType(SelectionStyle.NONE); } else { // this.listGrid.setSelectionType(getDefaultSelectionStyle()); } // int selectionCount = this.listGrid.getSelectedRecords().length; for (CarouselActionInfo carouselAction : this.carouselActions) { if (carouselAction.actionCanvas != null) { // if null, we haven't initialized our buttons yet, so skip this boolean enabled = (!this.carouselActionDisableOverride && carouselAction.action.isEnabled()); carouselAction.actionCanvas.setDisabled(!enabled); } } for (Canvas extraWidget : this.extraWidgetsAboveFooter) { extraWidget.enable(); if (extraWidget instanceof CarouselWidget) { ((CarouselWidget) extraWidget).refresh(carouselHolder.getMembers()); } } for (Canvas extraWidget : this.extraWidgetsInMainFooter) { extraWidget.enable(); if (extraWidget instanceof CarouselWidget) { ((CarouselWidget) extraWidget).refresh(carouselHolder.getMembers()); } } if (isShowFooterRefresh() && this.refreshButton != null) { this.refreshButton.enable(); } } }
private void update() { if (currentCanvas != null) { currentCanvas.hide(); } currentComponent = components.get(currentType); currentCanvas = currentComponent.get(); currentCanvas.show(); }
private Canvas createDeleteButton(final ListGridRecord ruleRecord) { Canvas delButton = new SmallButton(new Img(delImg), "", ""); delButton.addClickHandler(createDeleteHandler(ruleRecord)); delButton.setPrompt(i18n.unsubscribeThisRule()); delButton.setLayoutAlign(CENTER); delButton.setMargin(1); return delButton; }
public MillerTreeView() { final Canvas canvas = asCanvas(); canvas.setOverflow(com.smartgwt.client.types.Overflow.AUTO); final MillerTreeMenuModel model = GWT.create(MillerTreeMenuModel.class); final MillerTreeMenuView view = GWT.create(MillerTreeMenuView.class); final MillerTreeMenuPresenter presenter = GWT.create(MillerTreeMenuPresenter.class); MVP.create(model, view, presenter); model.setId(asTab().getID()); asTab().setAttribute("toolbar", view.asCanvas()); }
private void reset(final UploadComponentOptions options) { resetComponents(options); clear(); final Set<String> types = components.keySet(); currentType = types.iterator().next(); parentCanvas = new Canvas(); layout = new VLayout(); final SelectItem typeItem = new SelectItem("uploadType", "Upload Type"); typeItem.setValueMap(types.toArray(new String[types.size()])); typeItem.setValue(currentType); typeItem.setWidth(250); typeItem.addChangedHandler( new ChangedHandler() { public void onChanged(final ChangedEvent event) { currentType = typeItem.getValue().toString(); update(); } }); final Form form = new Form( DomConstants.buildConstant(DomConstants.UPLOAD_COMPONENT_TYPE, uploadComponentNumber), typeItem); form.setPadding(0); form.setMargin(0); form.setCellSpacing(0); form.setCellPadding(0); form.setAlign(Alignment.RIGHT); form.setWidth(350); form.setHeight(20); final HLayout header = new HLayout(); header.setAlign(Alignment.RIGHT); header.addMember(form); header.setHeight(20); layout.setAlign(Alignment.RIGHT); layout.addMember(header); layout.addMember(parentCanvas); layout.setGroupTitle("File Chooser"); layout.setIsGroup(true); layout.setHeight("185px"); layout.setPadding(2); layout.setLayoutAlign(Alignment.CENTER); layout.setAlign(Alignment.CENTER); for (final UploadComponent uploadComponent : components.values()) { final Canvas childCanvas = uploadComponent.get(); childCanvas.hide(); parentCanvas.addChild(childCanvas); } update(); wrapperLayout.addMember(layout); }
private void replaceContent(Layout layout, Canvas content) { if (content != null) { content.setWidth100(); content.setHeight100(); if (layout.hasMember(content)) { content.setVisible(true); } else { layout.addMember(content); // TODO: needed ? content.setVisible(true); } } }
@Override public void attachToCanvas() { // remove all previous members, except crumbs for (int i = 1; i < canvas.getMembers().length; i++) { Canvas m = canvas.getMember(i); canvas.removeMember(m); } if (tabs.getTabs().length == 1) { Canvas c = tabs.getTabs()[0].getPane(); c.setHeight100(); canvas.addMember(c); // add the pane directly } else canvas.addMember(tabs); }
private void disableAllFooterControls() { for (CarouselActionInfo action : carouselActions) { action.actionCanvas.disable(); } for (Canvas extraWidget : extraWidgetsAboveFooter) { extraWidget.disable(); } for (Canvas extraWidget : extraWidgetsInMainFooter) { extraWidget.disable(); } if (isShowFooterRefresh() && this.refreshButton != null) { this.refreshButton.disable(); } }
public PortalColumn() { // leave some space between portlets setMembersMargin(4); // Provide a visible border for framing of columns (especially when empty) and add padding to // make // the border easier to see for dragging // setBorder("2px solid #999999"); // Allow column specific vertical scrolling to see off-screen portlets. Takes up real estate but // allows // a user to see specific portlets in each column at the same time. // setOverflow(Overflow.AUTO); // enable predefined component animation setAnimateMembers(true); setAnimateMemberTime(300); // enable drop handling for moving portlet windows within or between columns setCanAcceptDrop(true); // change appearance of drag placeholder and drop indicator setDropLineThickness(4); Canvas dropLineProperties = new Canvas(); dropLineProperties.setBackgroundColor("#4A5D75"); setDropLineProperties(dropLineProperties); setShowDragPlaceHolder(true); Canvas placeHolderProperties = new Canvas(); placeHolderProperties.setBorder("2px solid #4A5D75"); setPlaceHolderProperties(placeHolderProperties); // Allow column resizing (width only) setCanDragResize(true); // Use Left side drag resize because right side seems to conflict with vertical scroll bars. setResizeFrom("L"); // Do not use the resize bar. It looks good but does not behave as well as the border dragging, // and does // not seem to play as well with the resize handlers. Maybe in the future... // setShowResizeBar(true); // True is the default, just capturing this call here for any future tweaking // setRedrawOnResize(true); }
/** Remove all handlers on unload. */ protected void onUnload() { if (registrations != null) { for (HandlerRegistration registration : registrations) { registration.removeHandler(); } } super.onUnload(); }
public void updateImg(String src) { String key = "[ISOMORPHIC]/../"; if (src.contains(key)) { src = GWT.getModuleBaseURL() + src.substring(key.length(), src.length()); } previewContainer.setContents( "<table width='99' height='99'><tr><td align='center' valign='middle'><img src='" + src + "' align='middle'/></td></tr></table>"); }
protected void addPortlet(String portletKey, String portletName) { DashboardPortlet storedPortlet = new DashboardPortlet(portletName, portletKey, 250); storedDashboard.addPortlet(storedPortlet); String locatorId = getPortletLocatorId(portalLayout, storedPortlet); final PortletWindow newPortletWindow = new PortletWindow(locatorId, this, storedPortlet, context); newPortletWindow.setTitle(portletName); newPortletWindow.setHeight(350); newPortletWindow.setVisible(false); portletWindows.add(newPortletWindow); portalLayout.addPortletWindow(newPortletWindow, storedPortlet.getColumn()); PortalColumn portalColumn = portalLayout.getPortalColumn(storedPortlet.getColumn()); // also insert a blank spacer element, which will trigger the built-in // animateMembers layout animation final LayoutSpacer placeHolder = new LayoutSpacer(); // placeHolder.setRect(newPortlet.getRect()); portalColumn.addMember(placeHolder); // add to top // create an outline around the clicked button final Canvas outline = new Canvas(); outline.setLeft(editForm.getAbsoluteLeft() + addPortlet.getLeft()); outline.setTop(editForm.getAbsoluteTop()); outline.setWidth(addPortlet.getWidth()); outline.setHeight(addPortlet.getHeight()); outline.setBorder("2px solid 8289A6"); outline.draw(); outline.bringToFront(); outline.animateRect( newPortletWindow.getPageLeft(), newPortletWindow.getPageTop(), newPortletWindow.getVisibleWidth(), newPortletWindow.getViewportHeight(), new AnimationCallback() { public void execute(boolean earlyFinish) { // callback at end of animation - destroy placeholder and outline; show the new portlet placeHolder.destroy(); outline.destroy(); newPortletWindow.show(); } }, 750); save(); }
public MasterView(String moduleKey, String pageKey, LinkedHashMap<String, Module> modules) { this.modules = modules; setWidth100(); setHeight100(); addMember(buildHeader()); addMember(buildPrimaryMenu(moduleKey)); addMember(buildSecondaryMenu(pageKey, moduleKey)); canvas = new HLayout(); canvas.setWidth100(); canvas.setHeight100(); addMember(canvas); buildFooter(); bind(); }
public Canvas getViewPanel() { Label label = new Label( "Staging: <span style=\"color: green; font-weight: bold;\">Normal</span><br/>" + "Production: <span style=\"color: green; font-weight: bold;\">Normal</span><br/>" + "Development: <span style=\"color: green; font-weight: bold;\">Normal</span>"); label.setHeight100(); label.setPadding(5); label.setValign(VerticalAlignment.TOP); Window window = new Window(); window.setTitle("Minimizing a window"); window.setWidth(300); window.setHeight(85); window.setCanDragResize(true); window.addItem(label); Canvas canvasMain = new Canvas(); canvasMain.addChild(window); return canvasMain; }
public Canvas getViewPanel() { VLayout layout = new VLayout(); layout.setMembersMargin(10); final Canvas cubeBin = new Canvas("cubeBin"); cubeBin.setTop(40); cubeBin.setWidth(400); cubeBin.setHeight(300); cubeBin.setShowEdges(true); IButton button = new IButton(); button.setTitle("Create"); button.setIcon("pieces/16/cube_blue.png"); button.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { final Img img = new Img(); img.setLeft(Random.nextInt(340)); img.setTop(Random.nextInt(240)); img.setWidth(48); img.setHeight(48); img.setParentElement(cubeBin); img.setSrc("pieces/48/cube_blue.png"); img.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { img.destroy(); } }); img.draw(); } }); layout.addMember(button); layout.addMember(cubeBin); return layout; }
private void viewBundleVersion(BundleVersion version, ViewId nextViewId) { // Whenever a new view request comes in, make sure to clean house to avoid ID conflicts for // sub-widgets this.destroyMembers(); this.version = version; addMember( new BackButton( MSG.view_bundle_version_backToBundle() + ": " + version.getBundle().getName(), LinkManager.getBundleLink(version.getBundle().getId()))); addMember( new HeaderLabel( Canvas.getImgURL("subsystems/bundle/BundleVersion_24.png"), version.getName() + ": " + version.getVersion())); // conditionally add tags. Defaults to true, not available in JON builds. if (CoreGUI.isTagsEnabledForUI()) { addMember(createTagEditor()); } addMember(createSummaryForm()); TabSet tabs = new TabSet(); tabs.addTab(createRecipeTab()); tabs.addTab(createLiveDeploymentsTab()); tabs.addTab(createFilesTab()); addMember(tabs); if (nextViewId != null) { if (nextViewId.getPath().equals("recipe")) { tabs.selectTab(0); } else if (nextViewId.getPath().equals("deployments")) { tabs.selectTab(1); } else if (nextViewId.getPath().equals("files")) { tabs.selectTab(2); } else { // should we throw an exception? someone gave a bad URL; just bring them to first tab tabs.selectTab(0); } } markForRedraw(); }
public Canvas getViewPanel() { Canvas canvas = new Canvas(); final ListGrid countryGrid = new ListGrid(); countryGrid.setWidth(550); countryGrid.setHeight(224); countryGrid.setShowAllRecords(true); countryGrid.setCellHeight(22); countryGrid.setDataSource(CountryXmlDS.getInstance()); ListGridField countryCodeField = new ListGridField("countryCode", "Flag", 40); countryCodeField.setAlign(Alignment.CENTER); countryCodeField.setType(ListGridFieldType.IMAGE); countryCodeField.setImageURLPrefix("flags/16/"); countryCodeField.setImageURLSuffix(".png"); countryCodeField.setCanEdit(false); ListGridField nameField = new ListGridField("countryName", "Country"); ListGridField continentField = new ListGridField("continent", "Continent"); ListGridField memberG8Field = new ListGridField("member_g8", "Member G8"); ListGridField populationField = new ListGridField("population", "Population"); populationField.setType(ListGridFieldType.INTEGER); populationField.setCellFormatter( new CellFormatter() { public String format(Object value, ListGridRecord record, int rowNum, int colNum) { if (value != null) { NumberFormat nf = NumberFormat.getFormat("0,000"); try { return nf.format(((Number) value).longValue()); } catch (Exception e) { return value.toString(); } } else { return null; } } }); ListGridField independenceField = new ListGridField("independence", "Independence"); countryGrid.setFields( countryCodeField, nameField, continentField, memberG8Field, populationField, independenceField); countryGrid.setAutoFetchData(true); countryGrid.setCanEdit(true); countryGrid.setEditEvent(ListGridEditEvent.CLICK); countryGrid.setListEndEditAction(RowEndEditAction.NEXT); canvas.addChild(countryGrid); IButton button = new IButton("Edit New"); button.setTop(250); button.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { countryGrid.startEditingNew(); } }); canvas.addChild(button); return canvas; }
public void place(Canvas canvas) { // move this object over top the given canvas moveTo(canvas.getAbsoluteLeft() - 8, canvas.getAbsoluteTop() - 4); }
public Canvas getViewPanel() { Canvas canvas = new Canvas(); final Label label = new Label(EXAMPLE_TEXT); label.setWidth(250); label.setPadding(10); label.setLeft(160); label.setTop(20); label.setBackgroundColor("white"); label.setBorder("1px solid #c0c0c0"); label.setCanDragReposition(true); label.setShowShadow(true); label.setShadowSoftness(10); label.setShadowOffset(5); label.setKeepInParentRect(true); final Slider softness = new Slider("Softness"); softness.setMinValue(1); softness.setMaxValue(10); softness.setNumValues(11); softness.setShowRange(false); softness.setLabelWidth(20); softness.setValue(10); softness.addDrawHandler( new DrawHandler() { public void onDraw(DrawEvent event) { softness.addValueChangedHandler( new ValueChangedHandler() { public void onValueChanged(ValueChangedEvent event) { label.setShadowSoftness(event.getValue()); label.updateShadow(); } }); } }); final Slider offset = new Slider("Offset"); offset.setMinValue(0); offset.setMaxValue(20); offset.setNumValues(21); offset.setShowRange(false); offset.setLabelWidth(20); offset.setLeft(60); offset.setValue(5); offset.addDrawHandler( new DrawHandler() { public void onDraw(DrawEvent event) { offset.addValueChangedHandler( new ValueChangedHandler() { public void onValueChanged(ValueChangedEvent event) { label.setShadowOffset(event.getValue()); label.updateShadow(); } }); } }); canvas.addChild(softness); canvas.addChild(offset); canvas.addChild(label); return canvas; }
private void initWidgets() { addGoodsCategory = new AddGoodsCategory(); mainLayout = new VLayout(); gridLayout = new HLayout(); gridLayout.setBackgroundColor("BurlyWood"); gridLayout.setHeight100(); gridLayout.setOverflow(Overflow.SCROLL); controlLayout = new HLayout(); controlLayout.setMargin(10); controlLayout.setHeight(buttonSizeHeight); goodsCategoryList = new ListGrid(); goodsCategoryList.setDataSource(DataSource.get("goodsCategory")); goodsCategoryList.setCanEdit(false); goodsCategoryList.setAutoSaveEdits(true); goodsCategoryList.setAutoFetchData(true); ListGridField goodsCategoryId = new ListGridField(); goodsCategoryId.setTitle(Constants.GOODSCATEGORY_GOODSCATEGORYID_TITLE); goodsCategoryId.setName(Constants.GOODSCATEGORY_GOODSCATEGORYID); goodsCategoryId.setWidth("10%"); ListGridField goodsCategoryShortNameTH = new ListGridField(); goodsCategoryShortNameTH.setTitle(Constants.GOODSCATEGORY_GOODSCATEGORYSHORTNAME_TH_TITLE); goodsCategoryShortNameTH.setName(Constants.GOODSCATEGORY_GOODSCATEGORYSHORTNAME_TH); goodsCategoryShortNameTH.setWidth("10%"); ListGridField goodsCategoryDetailsTH = new ListGridField(); goodsCategoryDetailsTH.setTitle(Constants.GOODSCATEGORY_GOODSCATEGORYDETAILS_TH_TITLE); goodsCategoryDetailsTH.setName(Constants.GOODSCATEGORY_GOODSCATEGORYDETAILS_TH); goodsCategoryDetailsTH.setWidth("60%"); goodsCategoryList.setFields(goodsCategoryId, goodsCategoryShortNameTH, goodsCategoryDetailsTH); goodsCategoryList.addRecordDoubleClickHandler( new RecordDoubleClickHandler() { @Override public void onRecordDoubleClick(RecordDoubleClickEvent event) { Record record = new Record(); record.setAttribute("goodsCategory", event.getRecord()); AddGoods.setGoodsCategoryAsRecord(record); } }); submit = new IButton(Constants.BUTTON_TITLE_SUBMIT); submit.setMargin(1); cancel = new IButton(Constants.BUTTON_TITLE_CANCEL); cancel.setMargin(1); search = new IButton(Constants.BUTTON_TITLE_SEARCH); search.setMargin(1); add = new IButton(Constants.BUTTON_TITLE_ADD); add.setMargin(1); edit = new IButton(Constants.BUTTON_TITLE_EDIT); edit.setMargin(1); submit.setSize(buttonSizeHeight, buttonSizeHeight); cancel.setSize(buttonSizeHeight, buttonSizeHeight); search.setSize(buttonSizeHeight, buttonSizeHeight); add.setSize(buttonSizeWidth, buttonSizeHeight); edit.setSize(buttonSizeWidth, buttonSizeHeight); add.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { addGoodsCategory.showAddGoodsCategory(); } }); edit.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { addGoodsCategory.showAddGoodsCategory( Constants.RECORD_ACTION_EDIT, goodsCategoryList.getSelectedRecord()); } }); cancel.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { hide(); } }); submit.addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { Record record = new Record(); record.setAttribute("goodsCategory", goodsCategoryList.getSelectedRecord()); // SC.say("GoodsCategoryList:"+"goodCategory"); AddGoods.setGoodsCategoryAsRecord(record); hide(); } }); addKeyPressHandler( new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { if (event.getKeyName().equals(KeyNames.ENTER)) { Record record = new Record(); record.setAttribute("goodsCategory", goodsCategoryList.getSelectedRecord()); AddGoods.setGoodsCategoryAsRecord(record); hide(); } if (event.isAltKeyDown() && event.getKeyName().equals("A")) { addGoodsCategory.showAddGoodsCategory(); } if (event.isAltKeyDown() && event.getKeyName().equals("E")) { addGoodsCategory.showAddGoodsCategory( Constants.RECORD_ACTION_EDIT, goodsCategoryList.getSelectedRecord()); } } }); Canvas emptyButtonWSize = new Canvas(); emptyButtonWSize.setSize(buttonSizeWidth, buttonSizeHeight); gridLayout.addMember(goodsCategoryList); controlLayout.addMembers(submit, cancel, search, emptyButtonWSize, add, edit); mainLayout.addMembers(gridLayout, controlLayout); setDataSectionBackgroundColor("Grey"); addDataSection(mainLayout); }
private void buildInstallInfoCanvas(AgentInstallInfo info) { DynamicForm infoForm = new DynamicForm(); infoForm.setMargin(20); infoForm.setWidth100(); infoForm.setHeight100(); HeaderItem infoHeader = new HeaderItem(); infoHeader.setValue(MSG.view_remoteAgentInstall_installInfo()); StaticTextItem version = new StaticTextItem("version", MSG.common_title_version()); version.setValue(info.getVersion()); StaticTextItem path = new StaticTextItem("path", MSG.common_title_path()); path.setValue(info.getPath()); StaticTextItem owner = new StaticTextItem("owner", MSG.common_title_owner()); owner.setValue(info.getOwner()); StaticTextItem config = new StaticTextItem("config", MSG.common_title_configuration()); config.setValue(info.getConfigurationStartString()); CanvasItem listCanvas = new CanvasItem(); listCanvas.setShowTitle(false); listCanvas.setColSpan(2); VLayout listLayout = new VLayout(0); listLayout.setWidth100(); listLayout.setHeight100(); ListGrid listGrid = new ListGrid() { @Override protected Canvas getExpansionComponent(ListGridRecord record) { Canvas canvas = super.getExpansionComponent(record); canvas.setPadding(5); return canvas; } }; listGrid.setWidth100(); listGrid.setHeight100(); listGrid.setCanExpandRecords(true); listGrid.setExpansionMode(ExpansionMode.DETAIL_FIELD); listGrid.setDetailField("result"); ListGridField step = new ListGridField("description", MSG.view_remoteAgentInstall_step()); ListGridField result = new ListGridField("result", MSG.view_remoteAgentInstall_result()); ListGridField resultCode = new ListGridField("resultCode", MSG.view_remoteAgentInstall_resultCode(), 90); ListGridField duration = new ListGridField("duration", MSG.common_title_duration(), 90); listGrid.setFields(step, result, resultCode, duration); listGrid.setData(getStepRecords(info)); listLayout.addMember(listGrid); listCanvas.setCanvas(listLayout); // Replace the current info with just the install steps for (Canvas canvas : this.getChildren()) { canvas.markForDestroy(); } createAgentStatusTextItem(); infoForm.setFields(infoHeader, version, path, owner, config, agentStatusText, listCanvas); addMember(infoForm); this.setMembersMargin(1); this.markForRedraw(); }
public void clearImage() { previewContainer.setContents(" "); }
private void disableCanvas(Canvas obj, boolean disabled) { if (obj.isCreated()) { obj.setDisabled(disabled); } }
public void addCarouselMember(Canvas member) { member.setWidth(carouselUsingFixedWidths ? getCarouselMemberFixedWidth() : "*"); this.carouselHolder.addMember(member); }
public Canvas getViewPanel() { Canvas canvas = new Canvas(); canvas.addChild(new DragPanSampleImg()); return canvas; }