Examples of ResourceComponent


Examples of com.liferay.faces.bridge.component.ResourceComponent

      if (resources == null) {
        resources = new ArrayList<UIComponent>();
      }

      String resourceLibrary = PRIMEFACES_THEME_PREFIX + primeFacesThemeName;
      ResourceComponent primeFacesStyleSheet = new ResourceComponent(facesContext, PRIMEFACES_THEME_RESOURCE_NAME,
          resourceLibrary, StringPool.HEAD);
      resources.add(primeFacesStyleSheet);
    }

    return resources;
View Full Code Here

Examples of de.FeatureModellingTool.FeatureModel.ResourceComponent

                }

            }

            Feature feature = null;
            ResourceComponent rc = null;

            feature = featureModel.getFeature(id);
            if (feature == null)
                rc = interactionModel.getResourceComponent(id);


            if ((feature == null) && (rc == null)) {
                dtde.dropComplete(false);
                return;
            }

            dtde.dropComplete(true);

            DropTarget dropTarget = (DropTarget) dtde.getSource();

            DrawingView drawingView = (DrawingView) dropTarget.getComponent();

            if (feature != null) {
                FeatureFigure ff = new FeatureFigure();
                ff.setAttribute("id", id);
                ff.setAttribute(FeatureFigure.IS_A_LINK, Boolean.TRUE);
                ff.setAttribute("text", feature.getName());
                ff.setAttribute(FeatureProperties.VARIABILITY, feature.getVariability().getName());
                ff.setAttribute(FeatureProperties.BINDINGTIME, feature.getBindingTime().getName());

                Point location = dtde.getLocation();
                double scale = drawingView.getScale();
                int realX = (int) (location.getX() / scale + 0.5);
                int realY = (int) (location.getY() / scale + 0.5);

                ff.basicDisplayBox(new Point(realX, realY), null);

                idToFigureMap.add(id, ff);
                drawingView.add(ff);
            } else if (rc != null) {
                ResourceComponentFigure rcf = new ResourceComponentFigure();
                rcf.setAttribute("id", id);
                rcf.setAttribute(FeatureFigure.IS_A_LINK, Boolean.TRUE);
                rcf.setAttribute("text", rc.getName());
                rcf.setAttribute(FeatureProperties.VARIABILITY, rc.getVariability().getName());

                Point location = dtde.getLocation();
                double scale = drawingView.getScale();
                int realX = (int) (location.getX() / scale + 0.5);
                int realY = (int) (location.getY() / scale + 0.5);
View Full Code Here

Examples of org.ajax4jsf.resource.ResourceComponent

   * @see org.ajax4jsf.resource.InternetResourceBase#getDataToStore(javax.faces.context.FacesContext, java.lang.Object)
   */
  public Object getDataToStore(FacesContext context, Object data) {
    UriData dataToStore = null;
    if (data instanceof ResourceComponent) {
      ResourceComponent resource = (ResourceComponent) data;
      dataToStore = new UriData();
      dataToStore.value = resource.getValue();
      dataToStore.createContent = UIComponentBase.saveAttachedState(context,resource.getCreateContent());
      if (data instanceof UIComponent) {
        UIComponent component = (UIComponent) data;
        ValueBinding expires = component.getValueBinding("expires");
        if (null != expires) {
          dataToStore.expires = UIComponentBase.saveAttachedState(context,expires);
View Full Code Here

Examples of org.rhq.core.pluginapi.inventory.ResourceComponent

    }

    @Test
    public void factoryShouldInitializeLegacyConfigMgmtWithComponentService() throws Exception {
        final boolean daemonOnly = true;
        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

Examples of org.rhq.core.pluginapi.inventory.ResourceComponent

    }

    @Test
    public void factoryShouldInitializeLegacyConfigMgmtWithConfigurationUtilityService() throws Exception {
        final boolean daemonOnly = true;
        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

Examples of org.rhq.core.pluginapi.inventory.ResourceComponent

        assertConfigurationUtilityServiceInitialized(loadConfig);
    }

    @Test
    public void factoryShouldInitializeStructuredConfigMgmtWithComponentService() throws Exception {
        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                boolean daemonOnly = true;
View Full Code Here

Examples of org.rhq.core.pluginapi.inventory.ResourceComponent

    @Test
    public void factoryShouldInitializeStructuredConfigMgmtWithConfigurationUtilityService() throws Exception {
        final boolean daemonOnly = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

Examples of org.rhq.core.pluginapi.inventory.ResourceComponent

    @Test
    public void factoryShouldInitializeRawConfigMgmtWithComponentService() throws Exception {
        final boolean daemonOnly = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

Examples of org.rhq.core.pluginapi.inventory.ResourceComponent

    @Test
    public void factoryShouldInitializeRawConfigMgmtWithConfigurationUtilityService() throws Exception {
        final boolean daemonOnly = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
View Full Code Here

Examples of org.rhq.core.pluginapi.inventory.ResourceComponent

    @Test
    public void factoryShouldInitializeLoadStructuredAndRawWithComponentService() throws Exception {
        final boolean daemonOnly = true;

        final ResourceComponent resourceComponent = context.mock(ResourceComponent.class);

        context.checking(new Expectations() {
            {
                allowing(componentService).getComponent(resourceId, ResourceComponent.class, FacetLockType.READ,
                    ConfigManagement.FACET_METHOD_TIMEOUT, daemonOnly, onlyIfStarted);
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.