Examples of Application


Examples of net.java.dev.wadl.x2009.x02.ApplicationDocument.Application

    if( !StringUtils.hasContent( href ) )
      return representation;

    try
    {
      Application app = application;

      if( !href.startsWith( "#" ) )
      {
        ApplicationDocument applicationDocument = loadReferencedWadl( href );
        app = applicationDocument.getApplication();
View Full Code Here

Examples of net.rim.device.api.system.Application

          Reader reader = new InputStreamReader(s, enc);
          final String version = getMIDletVersion(reader);
          if (version == null) {
            throw new IOException("MIDlet-Version not found");
          } else if (!version.equals(applicationVersion)) {
            Application application = Application.getApplication();
            application.invokeLater(new Runnable() {
              public void run() {
                mCallback.onUpdate(version);
              }
            });
          } else {
View Full Code Here

Examples of net.sf.libgrowl.Application

      mInitialized = true;
    }
    else {
      try {
        mGrowlConnector = new GrowlConnector();
        mApplication = new Application("TV-Browser");
        File icon = new File(TVBROWSER_ICON_NAME);
        if (icon.isFile()) {
          mApplication.setIcon(icon.getAbsolutePath());
        }
        mNotificationProgram = new NotificationType("program_notification",
View Full Code Here

Examples of net.sourceforge.parus.ntrviewer.gui.Application

    public Controller() {
        initializeLookAndFeel();
        initializeVersion();
        loadVisualizations();
        this.application = new Application( this );
    }
View Full Code Here

Examples of net.yacy.gui.framework.Application

        // registering shutdown hook
        log.info("Registering Shutdown Hook");
        Thread t = new Thread() {
            @Override
            public void run() {
                app = new Application("YaCy GUI", operation, menues, new InfoPage("localhost", 8090));
                app.setLocationRelativeTo(null);
                app.setVisible(true);
            }
        };
        Switchboard.addShutdownHook(t, net.yacy.yacy.shutdownSemaphore);
View Full Code Here

Examples of opus.gwt.management.console.client.overlays.Application

      activeButton.setText("Activate project");
    }
   
    for(int i = 0; i < applicationsArray.length() - 1; i++) {
     
      final Application app = applicationsMap.get(applicationsArray.get(i));
      final FlowPanel application = new FlowPanel();
      final FocusPanel applicationLabel = new FocusPanel();
     
      final Label appName = new Label(app.getName());
      final Label httpLabel = new Label("HTTP");
      final Label httpsLabel = new Label("HTTPS");
      final Label settingsLabel = new Label("Settings");
     
      Image appIcon = new Image();
     
      if(app.getIconURL().split("//").length < 2) {
        appIcon = new Image(JSVarHandler.getCommunityBaseURL() + app.getIconURL());
      } else {
        appIcon = new Image(app.getIconURL());
      }
     
      appIcon.setSize("64px", "64px");
     
      application.add(appIcon);
      application.add(appName);
      application.add(httpLabel);
      application.add(httpsLabel);
      application.add(settingsLabel);
      application.setStyleName(manager.appIcon());
     
      applicationLabel.add(application);

      applicationLabel.addMouseOverHandler(new MouseOverHandler() {
        public void onMouseOver(MouseOverEvent event){
          if(project.isActive()) {
            applicationLabel.setStyleName(manager.appIconActive());
            appName.addStyleName(manager.text());
            httpLabel.addStyleName(manager.link());
            httpsLabel.addStyleName(manager.link());
            settingsLabel.addStyleName(manager.link());
          }
        }
      });
      applicationLabel.addMouseOutHandler(new MouseOutHandler() {
        public void onMouseOut(MouseOutEvent event){
          applicationLabel.setStyleName(manager.appIcon());
          appName.removeStyleName(manager.text());
          httpLabel.removeStyleName(manager.link());
          httpsLabel.removeStyleName(manager.link());
          settingsLabel.removeStyleName(manager.link());
        }
      });
     
      httpLabel.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          if(project.isActive()) {
            Window.Location.assign(project.getURLS().get(0) + app.getAppName());
          }
        }
      });
     
      httpsLabel.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          if(project.isActive()) {
            Window.Location.assign(project.getURLS().get(1) + app.getAppName());
          }
        }
      });
     
      settingsLabel.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          if(project.isActive()) {
            eventBus.fireEvent(new PanelTransitionEvent(PanelTransitionEvent.TransitionTypes.SETTINGS, app.getAppName()));
          }
        }
      });
     
      applicationsFlowPanel.add(applicationLabel);
View Full Code Here

Examples of org.apache.avalon.phoenix.interfaces.Application

        //lock for application startup and shutdown
        synchronized( entry )
        {
            final String name = entry.getMetaData().getName();

            Application application = entry.getApplication();
            if( null == application )
            {
                try
                {
                    final Application newApp = new DefaultApplication();
                    final Logger childLogger =
                        getLogger().getChildLogger( name );
                    ContainerUtil.enableLogging( newApp, childLogger );

                    final ApplicationContext context =
                        createApplicationContext( entry );
                    newApp.setApplicationContext( context );

                    ContainerUtil.initialize( newApp );

                    application = newApp;
                }
View Full Code Here

Examples of org.apache.cayenne.modeler.Application

    private void init() {
        this.setLayout(new BorderLayout());

        JToolBar toolBar = new JToolBar();
        Application app = Application.getInstance();
        toolBar
                .add(app
                        .getAction(CreateRelationshipAction.getActionName())
                        .buildButton());
        toolBar.add(app.getAction(ObjEntitySyncAction.getActionName()).buildButton());

        toolBar.addSeparator();
       
        Icon ico = ModelerUtil.buildIcon("icon-info.gif");

        resolve = new JButton();
        resolve.setIcon(ico);
        resolve.setToolTipText("Edit Relationship");
        toolBar.add(resolve);

        toolBar.addSeparator();

        toolBar.add(app.getAction(RemoveRelationshipAction.getActionName()).buildButton());
       
        toolBar.addSeparator();
        toolBar.add(app.getAction(CutRelationshipAction.getActionName()).buildButton());
        toolBar.add(app.getAction(CopyRelationshipAction.getActionName()).buildButton());
        toolBar.add(app.getAction(PasteAction.getActionName()).buildButton());
       
        add(toolBar, BorderLayout.NORTH);

        table = new CayenneTable();
        table.setDefaultRenderer(String.class, new StringRenderer());
        table.setDefaultRenderer(ObjEntity.class, new EntityRenderer());
       
        /**
         * Create and install a popup
         */
        resolveMenu = new JMenuItem("Database Mapping", ico);
       
        JPopupMenu popup = new JPopupMenu();
        popup.add(resolveMenu);
        popup.add(app.getAction(RemoveRelationshipAction.getActionName()).buildMenu());
       
        popup.addSeparator();
        popup.add(app.getAction(CutRelationshipAction.getActionName()).buildMenu());
        popup.add(app.getAction(CopyRelationshipAction.getActionName()).buildMenu());
        popup.add(app.getAction(PasteAction.getActionName()).buildMenu());
       
        TablePopupHandler.install(table, popup);

        add(PanelFactory.createTablePanel(table, null), BorderLayout.CENTER);
    }
View Full Code Here

Examples of org.apache.cocoon.auth.Application

        final HttpSession session = req.getSession(false);
        if ( session != null ) {
            // remove application data from session
            session.removeAttribute(APPLICATION_KEY_PREFIX + appName);

            final Application application = this.getApplication(appName);
            final String securityHandlerKey = this.getKey(application.getSecurityHandler());

            // remove application from object model
            if ( application.equals( ApplicationUtil.getApplication(objectModel) ) ) {
                objectModel.remove(ApplicationManager.APPLICATION);
                objectModel.remove(ApplicationManager.APPLICATION_DATA);
                objectModel.remove(ApplicationManager.USER);
            }

            // remove user
            session.removeAttribute(USER + '-' + appName);

            // decrement logininfo counter
            final Map loginInfos = (Map)session.getAttribute(LOGIN_INFO_KEY);
            if ( loginInfos != null ) {
                final LoginInfo info = (LoginInfo)loginInfos.get(securityHandlerKey);
                if ( info != null ) {
                    // notify the application
                    application.userWillLogout(info.user, logoutContext);

                    info.decUsageCounter(appName);
                    if ( info.isUsed() ) {
                        session.setAttribute(LOGIN_INFO_KEY, loginInfos);
                    } else {
                        // logout from security handler
                        application.getSecurityHandler().logout(logoutContext, info.user);
                        // remove user info
                        loginInfos.remove(securityHandlerKey);
                        if ( loginInfos.size() > 0 ) {
                            session.setAttribute(LOGIN_INFO_KEY, loginInfos);
                        } else {
View Full Code Here

Examples of org.apache.flume.node.Application

  @Override
  public void start() throws IOException {
    File newFlumeConfiguration = configureBindIp(flumeConfiguration);
    PropertiesFileConfigurationProvider configurationProvider =
        new PropertiesFileConfigurationProvider(agentName, newFlumeConfiguration);
    flumeApplication = new Application();
    flumeApplication.handleConfigurationEvent(configurationProvider.getConfiguration());
    flumeApplication.start();
    LOG.info("Flume Minicluster service started.");
  }
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.