Examples of removeAttribute()


Examples of org.olat.core.gui.components.Window.removeAttribute()

    Window myWindow = getWindowControl().getWindowBackOffice().getWindow();
    CustomCSS currentCustomCSS = (CustomCSS) myWindow.getAttribute(CURRENT_CUSTOM_CSS_KEY);
    if (currentCustomCSS != null) {
      // remove css and js from view
      mainVc.remove(currentCustomCSS.getJSAndCSSComponent());
      myWindow.removeAttribute(CURRENT_CUSTOM_CSS_KEY);
    }
  }

  /**
   * Add a custom css to the view and mark it as the curent custom CSS.
View Full Code Here

Examples of org.opencustomer.framework.webapp.panel.Panel.removeAttribute()

            new ListConfigurationDAO().delete(listConfiguration);
           
            PanelStack stack = Panel.getPanelStack(request);
            if(stack.getSize() > 2) {
                Panel lastPanel = stack.peek(3);
                lastPanel.removeAttribute("listConfigurations");
                lastPanel.removeAttribute("choosenList");
                lastPanel.removeAttribute(ListAction.TABLE_KEY);
            }
           
        } catch (HibernateException e) {
View Full Code Here

Examples of org.openqreg.bean.CentreBean.removeAttribute()

      CentreBean centre2 = (CentreBean)CentreFinderBase.findByPrimaryKey(con, new CentreKey(centre1.getId()));
      assertEquals("Centrena skall vara lika", centre1, centre2);
      assertEquals("Attributen skall vara lika", centre1.getAttribute("name1"), centre2.getAttribute("name1"));
     
      //Radera attribut
      centre2.removeAttribute("name1");
      assertNull("Attributet skall inte finnas", centre2.getAttribute("name1"));
      centre2.store(con);
      centre1 = (CentreBean)CentreFinderBase.findByPrimaryKey(con, new CentreKey(centre2.getId()));
      assertNull("Attributet skall inte finnas", centre2.getAttribute("name1"));
View Full Code Here

Examples of org.openqreg.bean.CountryBean.removeAttribute()

      CountryBean country2 = (CountryBean)CountryFinderBase.findByPrimaryKey(con, new CountryKey(country1.getId()));
      assertEquals("Countryna skall vara lika", country1, country2);
      assertEquals("Attributen skall vara lika", country1.getAttribute("name1"), country2.getAttribute("name1"));
     
      //Radera attribut
      country2.removeAttribute("name1");
      assertNull("Attributet skall inte finnas", country2.getAttribute("name1"));
      country2.store(con);
      country1 = (CountryBean)CountryFinderBase.findByPrimaryKey(con, new CountryKey(country2.getId()));
      assertNull("Attributet skall inte finnas", country2.getAttribute("name1"));
View Full Code Here

Examples of org.openqreg.bean.UserBean.removeAttribute()

      user1.create(con);
      UserBean user2 = (UserBean)UserFinderBase.findByPrimaryKey(con, new UserKey(user1.getId()));
      assertEquals("Attributen skall vara lika", user1.getAttribute("name1"), user2.getAttribute("name1"));
     
      //Radera attribut
      user2.removeAttribute("name1");
      assertNull("Attributet skall inte finnas", user2.getAttribute("name1"));
      user2.store(con);
      user1 = (UserBean)UserFinderBase.findByPrimaryKey(con, new UserKey(user2.getId()));
      assertNull("Attributet skall inte finnas", user2.getAttribute("name1"));
View Full Code Here

Examples of org.pentaho.platform.api.engine.IPentahoSession.removeAttribute()

      return object;
    }

    public Object remove( String name ) {
      IPentahoSession session = SpringScopeSessionHolder.SESSION.get();
      return session.removeAttribute( name );
    }

    public void registerDestructionCallback( String name, Runnable callback ) {
      logger.warn( "SimpleThreadScope does not support descruction callbacks. "
        + "Consider using a RequestScope in a Web environment." );
View Full Code Here

Examples of org.pentaho.platform.engine.core.system.StandaloneSession.removeAttribute()

    session.setAttribute( "testattribute", this ); //$NON-NLS-1$
    assertTrue( "Wrong attributes", session.getAttributeNames().hasNext() ); //$NON-NLS-1$
    assertEquals( "Wrong attribute name", "testattribute", session.getAttributeNames().next() ); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals( "Wrong attribute value", this, session.getAttribute( "testattribute" ) ); //$NON-NLS-1$ //$NON-NLS-2$

    session.removeAttribute( "testattribute" ); //$NON-NLS-1$
    assertFalse( "Wrong attributes", session.getAttributeNames().hasNext() ); //$NON-NLS-1$
    assertNull( "Wrong attribute value", session.getAttribute( "testattribute" ) ); //$NON-NLS-1$ //$NON-NLS-2$

  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.xmlns.common.AttributeList.removeAttribute()

                for (int i = 0; i < shapes.size(); i++)
                {
                    final AttributeMap attrs = (AttributeMap) shapes.get(i);
                    final AttributeList attrList = buildAttributeList(attrs);
                    attrList.removeAttribute(OfficeNamespaces.DRAWING_NS, OfficeToken.STYLE_NAME);
                    xmlWriter.writeTag(OfficeNamespaces.DRAWING_NS, OfficeToken.FRAME, attrList, XmlWriterSupport.OPEN);
                    startChartProcessing((AttributeMap) ole.get(i));

                    xmlWriter.writeCloseTag();
                }
View Full Code Here

Examples of org.red5.server.api.so.ISharedObject.removeAttribute()

      // disconnects.
      return null;
    }

    String username = so.getStringAttribute(uid);
    so.removeAttribute(uid);
    return username;
  }

}
View Full Code Here

Examples of org.springframework.batch.core.scope.context.JobContext.removeAttribute()

   */
  @Override
  public Object remove(String name) {
    JobContext context = getContext();
    logger.debug(String.format("Removing from scope=%s, name=%s", this.getName(), name));
    return context.removeAttribute(name);
  }

  /**
   * Get an attribute accessor in the form of a {@link JobContext} that can
   * be used to store scoped bean instances.
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.