Examples of IKey


Examples of fr.soleil.data.service.IKey

    @Override
    public void selectedItemChanged(EventObject event) {
        // This is a special case: we don't want to keep a refreshable source, only to set a value
        String item = ((ComboBox) getComponent()).getSelectedValue();
        if ((item != null) && (!item.trim().isEmpty())) {
            IKey key = new TangoKey();
            TangoKeyTool.registerCommand(key, m_helper.getDeviceName(), item);
            AbstractDataSource<?> dao = refreshingManager.createDataSource(key);
            if (dao != null) {
                dao.setData(null);
            }
View Full Code Here

Examples of fr.soleil.data.service.IKey

        return result;
    }

    private void initConnections() {

        IKey currentKey = currentKeyGenerator.getBooleanScalarKey();

        booleanBox.reconnectWidget(checkBox, currentKey);
        booleanBox.reconnectWidget(booleanIconButton, currentKey);
        stringBox.reconnectWidget(booleanComboBox, currentKey);
View Full Code Here

Examples of fr.soleil.data.service.IKey

    }

    protected String printDataSource(final AbstractDataSource<?> source) {
        final StringBuilder result = new StringBuilder();
        result.append(source.getClass().getSimpleName() + "-" + source.hashCode());
        final IKey key = source.getOriginDescriptor();
        if (key != null) {
            result.append("(");
            result.append(key.getInformationKey());
            result.append(")");
            result.append("\n\t");
        }
        return result.toString();
    }
View Full Code Here

Examples of fr.soleil.data.service.IKey

                List<ConnectionParameters> toRemove = new ArrayList<ConnectionParameters>();
                for (ConnectionParameters params : badConnectionParameters) {
                    @SuppressWarnings("unchecked")
                    AbstractCometeBox<ITarget> box = (AbstractCometeBox<ITarget>) params.getBox();
                    ITarget widget = params.getWidget();
                    IKey key = params.getKey();
                    if (interruptedReconnection) {
                        break;
                    }
                    if (box.connectWidget(widget, key, false, params.isPlugins())) {
                        toRemove.add(params);
View Full Code Here

Examples of net.mcft.copy.betterstorage.api.lock.IKey

  }
 
  @Override
  public boolean canApplyAtEnchantingTable(ItemStack stack) {
    if (type == BetterStorageEnchantment.getType("key")) {
      IKey key = (stack.getItem() instanceof IKey ? (IKey)stack.getItem() : null);
      return ((key != null) && key.canApplyEnchantment(stack, this));
    } else if (type == BetterStorageEnchantment.getType("lock")) {
      ILock lock = (stack.getItem() instanceof ILock ? (ILock)stack.getItem() : null);
      return ((lock != null) && lock.canApplyEnchantment(stack, this));
    } else return false;
  }
View Full Code Here

Examples of org.apache.wicket.protocol.ws.api.registry.IKey

   *      the web socket connection to use to communicate with the client
   * @see #onOpen(Object)
   */
  protected final void onConnect(final IWebSocketConnection connection)
  {
    IKey key = getRegistryKey();
    connectionRegistry.setConnection(getApplication(), getSessionId(), key, connection);
    broadcastMessage(new ConnectedMessage(getApplication(), getSessionId(), key));
  }
View Full Code Here

Examples of org.apache.wicket.protocol.ws.api.registry.IKey

  }

  @Override
  public void onClose(int closeCode, String message)
  {
    IKey key = getRegistryKey();
    broadcastMessage(new ClosedMessage(getApplication(), getSessionId(), key));
    connectionRegistry.removeConnection(getApplication(), getSessionId(), key);
  }
View Full Code Here

Examples of org.apache.wicket.protocol.ws.api.registry.IKey

   * @param message
   *      the message to broadcast
   */
  public final void broadcastMessage(final IWebSocketMessage message)
  {
    IKey key = getRegistryKey();
    IWebSocketConnection connection = connectionRegistry.getConnection(application, sessionId, key);

    if (connection != null && connection.isOpen())
    {
      Application oldApplication = ThreadContext.getApplication();
View Full Code Here

Examples of org.apache.wicket.protocol.ws.api.registry.IKey

    return payload;
  }

  private IKey getRegistryKey()
  {
    IKey key;
    if (Strings.isEmpty(resourceName))
    {
      key = new PageIdKey(pageId);
    }
    else
View Full Code Here

Examples of org.apache.wicket.protocol.ws.api.registry.IKey

    Args.notNull(connection, "connection");
    Args.notNull(message, "message");

    Application application = connection.getApplication();
    String sessionId = connection.getSessionId();
    IKey key = connection.getKey();
    IWebSocketConnection wsConnection = registry.getConnection(application, sessionId, key);
    if (wsConnection == null)
    {
      return;
    }
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.