Examples of Control


Examples of org.apache.directory.shared.ldap.message.control.Control

        LOG.debug( "Handling single searchResultDone response: {}", response );
       
        SearchResultDoneCodec searchResult = (SearchResultDoneCodec)response;
       
        // Get the control
        Control control = searchResult.getCurrentControl();
        SyncDoneValueControl syncDoneCtrl = ( SyncDoneValueControl ) control;

        /** the sync cookie sent by the server */
        byte[] syncCookie;

View Full Code Here

Examples of org.apache.directory.shared.ldap.model.message.Control

        assertEquals( "ou=Product Development, dc=airius, dc=com", entry.getDn().getName() );
        assertTrue( entry.isChangeDelete() );

        // Check the control
        Control control = entry.getControl( "1.2.840.113556.1.4.805" );

        assertEquals( "1.2.840.113556.1.4.805", control.getOid() );
        assertTrue( control.isCritical() );
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.Control

                Control[] searchControls = search.getControls();
                if ( searchControls != null && searchControls.length > 0 )
                {
                    for ( int i = 0; i < searchControls.length; i++ )
                    {
                        Control c = searchControls[i];
                        if ( Control.SUBENTRIES_CONTROL.equals( c ) )
                        {
                            subentriesControlButton.setSelection( true );
                        }
                    }
View Full Code Here

Examples of org.apache.jetspeed.om.profile.Control

                assertTrue(layoutParam.getValue().equals("1"));
                layoutParam = (Parameter)layoutParams.next();
                assertTrue(layoutParam.getName().equals("b"));
                assertTrue(layoutParam.getValue().equals("2"));

                Control control = rootset.getControl();
                assertNotNull(control);
                Iterator controlParams = control.getParameterIterator();
                assertNotNull(controlParams);
                Parameter controlParam = (Parameter)controlParams.next();
                assertTrue(control.getName().equals("TabControl"));
                assertTrue(controlParam.getName().equals("a"));
                assertTrue(controlParam.getValue().equals("1"));
                controlParam = (Parameter)controlParams.next();
                assertTrue(controlParam.getName().equals("b"));
                assertTrue(controlParam.getValue().equals("2"));
View Full Code Here

Examples of org.araneaframework.uilib.form.control.Control

    FormWidget form = makeUsualForm();

    assertTrue("'myCheckBox' must contain a CheckboxControl!", form.getControlByFullName("myCheckBox") instanceof CheckboxControl);
    assertTrue("'hierarchyTest.myTextarea' must contain a TextareaControl!", form.getControlByFullName("hierarchyTest.myTextarea") instanceof TextareaControl);
   
    Control result = form.getControlByFullName("hierarchyTestm.yTextarea");
   
    assertTrue("An exception must be thrown if wrong element name is given!", result == null);
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Control

        while (it.hasNext()) {
          ValidationError error = it.next();
          String[] propHints = error.getPropertyHints();
          for (int i = 0; i < propHints.length; i++) {
            String propHint = propHints[i];         
            Control control = _fields.get(propHint);
            if (control != null) {
              addError(form.getMessageManager(), propHint, error, control);
              unhandled.remove(error);
            }
          }
View Full Code Here

Examples of org.eclipse.swt.widgets.Control

   */
  public void run() {
    Display display= Display.getCurrent();
    if (display == null)
      return;
    Control focus= display.getFocusControl();
    if (focus == null || focus.isDisposed())
      return;
   
    MenuManager menu= new MenuManager();
    fillMenu(menu);
    final Menu widget= menu.createContextMenu(focus.getShell());
    Point location= computeMenuLocation(focus, widget);
    if (location == null)
      return;
    widget.setLocation(location);
    widget.setVisible(true);
View Full Code Here

Examples of org.eclipse.swt.widgets.Control

    new BooleanParameter(cSection, "GUI_SWT_bOldSpeedMenu", LBLKEY_PREFIX
        + "use_old_speed_menus");

    BooleanParameter bpCustomTab = new BooleanParameter(cSection,
        "useCustomTab", "ConfigView.section.style.useCustomTabs");
    Control cFancyTab = new BooleanParameter(cSection, "GUI_SWT_bFancyTab",
        "ConfigView.section.style.useFancyTabs").getControl();

    Control[] controls = {
      cFancyTab
    };
View Full Code Here

Examples of org.eclipse.swt.widgets.Control

      public void handleEvent (Event event) {
       
        Control [] children = gRadio.getChildren ();
       
        for (int j=0; j<children.length; j++) {
           Control child = children [j];
           if (child instanceof Button) {
             Button button = (Button) child;
             if ((button.getStyle () & SWT.RADIO) != 0) button.setSelection (false);
           }
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Control

    final boolean bOverrideToStopped = event.detail == DND.DROP_COPY;

    boolean  share_op = false;
   
    try{
      Control c = ((DropTarget)event.widget).getControl();
     
      Control hit = Utils.findChild((Composite )c, event.x, event.y );
     
      while( hit != null ){
       
        String data = (String)hit.getData( "TableView.TableID" );
       
        if ( data != null && data.equals( "MyShares" )){
         
          share_op = true;
         
          break;
        }
       
        hit = hit.getParent();
      }
    }catch( Throwable e ){
     
      e.printStackTrace();
    }
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.