List of usage examples for com.google.gwt.event.logical.shared OpenEvent fire
public static <T> void fire(HasOpenHandlers<T> source, T target)
From source file:com.alkacon.geranium.client.ui.FieldSet.java
License:Open Source License
/** * Adds a click handler to the image icon of this fieldset.<p> * //from w w w . j a v a 2 s. co m * On click the * * @param e the event */ @UiHandler("m_image") protected void handleClick(ClickEvent e) { if (m_animation != null) { m_animation.cancel(); } if (!m_opened) { // show content setOpen(true); m_animation = SlideAnimation.slideIn(m_content.getElement(), new Command() { /** * @see com.google.gwt.user.client.Command#execute() */ public void execute() { OpenEvent.fire(FieldSet.this, FieldSet.this); } }, m_animationDuration); } else { // hide content m_animation = SlideAnimation.slideOut(m_content.getElement(), new Command() { /** * @see com.google.gwt.user.client.Command#execute() */ public void execute() { setOpen(false); CloseEvent.fire(FieldSet.this, FieldSet.this); } }, m_animationDuration); } }
From source file:com.areahomeschoolers.baconbits.client.content.calendar.CalendarWidget.java
License:Open Source License
public void fireOpenEvent(Appointment appointment) { OpenEvent.fire(this, appointment); }
From source file:com.dianaui.universal.core.client.ui.base.AbstractButtonGroup.java
License:Apache License
public void show() { addStyleName(Styles.OPEN); OpenEvent.fire(this, true); }
From source file:com.dianaui.universal.core.client.ui.base.AbstractButtonGroup.java
License:Apache License
public void hide() { removeStyleName(Styles.OPEN); OpenEvent.fire(this, false); }
From source file:com.ephesoft.dcma.gwt.rv.client.view.DocumentTree.java
License:Open Source License
/** * @param docBean/*ww w.ja v a 2 s. c o m*/ * @param docTitleLabel * @param docType * @param icon * @param docItem */ private void addDocDisplayItemsAndHandlers(final Document docBean, Label docTitleLabel, Label docType, Label icon, final TreeItem docItem) { String docDisplayProperty = getDocDisplayProperty(docBean, presenter.batchDTO.getDocDisplayName()); DocumentTreeItem documentTreeItem = new DocumentTreeItem(docItem, docBean, icon, docDisplayProperty); addDocTreeItem(documentTreeItem); docItem.setTitle(documentTreeItem.documentTitle); docTitleLabel.setText(documentTreeItem.documentTitle); docType.setText(documentTreeItem.displayName); docTitleLabel.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent arg0) { if (docItem.getState()) { docItem.setState(Boolean.FALSE); } else { OpenEvent.fire(docTree, docItem); } } }); }
From source file:com.google.code.guidatv.client.ui.widget.imported.DisclosurePanel.java
License:Apache License
private void fireEvent() { if (isOpen) { OpenEvent.fire(this, this); } else {//from ww w .j a v a2 s. c o m CloseEvent.fire(this, this); } }
From source file:com.googlecode.kanbanik.client.components.WindowBox.java
License:Apache License
@Override public void show() { boolean fireOpen = !isShowing(); super.show(); if (fireOpen) { OpenEvent.fire(this, this); }// www . j ava2 s .co m }
From source file:com.googlecode.mgwt.ui.client.widget.menu.swipe.SwipeMenu.java
License:Apache License
private void openMenu() { OpenEvent.fire(this, this); wrap.removeStyleName(appearance.css().closed()); wrap.addStyleName(appearance.css().opened()); CssUtil.resetTransForm(wrap.getElement()); }
From source file:com.tractionsoftware.gwt.user.client.ui.TractionDialogBox.java
License:Apache License
/** * Overrides show to call {@link #adjustGlassSize()} if the dialog * is already showing and fires an {@link OpenEvent} after the * normal show./* w w w. ja va 2 s .co m*/ */ @Override public void show() { boolean fireOpen = !isShowing(); super.show(); // adjust the size of the glass if (isShowing()) { adjustGlassSize(); } // fire the open event if (fireOpen) { OpenEvent.fire(this, this); } }
From source file:gwt.material.design.addins.client.base.mixin.TreeItemMixin.java
License:Apache License
@Override public void initTreeItem() { MaterialTreeItem item = (MaterialTreeItem) uiObject; // Fire selection event SelectionEvent.fire(getTree(), item); if (!getTreeItems().isEmpty()) { for (MaterialTreeItem treeItem : getTreeItems()) { if (hide) { treeItem.setVisible(false); } else { treeItem.setVisible(true); }/*ww w . ja va 2s .com*/ } // Firing of events based on the status of the tree item if (hide) { CloseEvent.fire(getTree(), item); hide = false; } else { OpenEvent.fire(getTree(), item); hide = true; } } }