Examples of canRemoveElement()


Examples of org.enhydra.jawe.JaWEComponent.canRemoveElement()

        Iterator comps = JaWEManager.getInstance().getComponentManager().getComponents().iterator();
        while (comps.hasNext()) {
            JaWEComponent jc = (JaWEComponent) comps.next();
            if (jc != this) {
                boolean approved = jc.canRemoveElement(col, el);
                if (approved == false) {
                    return false;
                }
            }
        }
View Full Code Here

Examples of org.enhydra.jawe.base.controller.JaWEController.canRemoveElement()

      JaWEController jc = JaWEManager.getInstance().getJaWEController();

      XMLElement selEl=getSelectedElement();
      newElementAction.setEnabled(jc.canCreateElement((XMLCollection) getOwner()));
      editElementAction.setEnabled((selEl != null && XMLUtil.getPackage(selEl)!=null));
      deleteElementAction.setEnabled((selEl != null && jc.canRemoveElement((XMLCollection)getOwner(), selEl)));

      boolean canRepos = JaWEManager.getInstance().getJaWEController().canRepositionElement((XMLCollection) getOwner(),
            null);
      moveUpAction.setEnabled(selEl != null && allParam.getSelectedIndex() > 0 && canRepos);
      moveDownAction.setEnabled(selEl != null
View Full Code Here

Examples of org.enhydra.jawe.base.controller.JaWEController.canRemoveElement()

      JaWEController jc = JaWEManager.getInstance().getJaWEController();

      XMLElement selEl=getSelectedElement();
      newElementAction.setEnabled(jc.canCreateElement((XMLCollection) getOwner()));
      editElementAction.setEnabled((selEl != null && XMLUtil.getPackage(selEl)!=null));
      deleteElementAction.setEnabled((selEl != null && jc.canRemoveElement((XMLCollection)getOwner(), selEl)));

      boolean canRepos = JaWEManager.getInstance().getJaWEController().canRepositionElement((XMLCollection) getOwner(),
            null);
      moveUpAction.setEnabled(selEl != null && allItems.getSelectedRow() > 0 && canRepos);
      moveDownAction.setEnabled(selEl != null
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.