Examples of LayoutInfo


Examples of buoy.widget.LayoutInfo

    private Preferences preferences = Preferences.userNodeForPackage( NtrViewer.class );

    public AboutDialog() {
        String version = preferences.get("version","0.01");
        BorderContainer mainPane = new BorderContainer();
        mainPane.setDefaultLayout( new LayoutInfo(LayoutInfo.CENTER, LayoutInfo.NONE, new Insets(5,5,5,5), null));
        String htmlText = "<html><body>" +
                "<span style=\"font-size:110%; text-decoration: underline;\">NtrViewer v. " + version + "</span><br><br>" +
                "NtrViewer is a part of<br>" +
                "a parallel programming<br>" +
                "language Parus.<br><br>" +
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.LayoutInfo

  // Command
  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected Command getCreateCommand(CreateRequest request) {
    final LayoutInfo newLayout = (LayoutInfo) request.getNewObject();
    return new EditCommand(m_container) {
      @Override
      protected void executeEdit() throws Exception {
        m_container.setLayout(newLayout);
      }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.LayoutInfo

          ComponentDescriptionHelper.getDescription(editor, layoutClass);
      ObjectInfoAction action = new ObjectInfoAction(this) {
        @Override
        protected void runEx() throws Exception {
          description.ensureLibraries(editor.getJavaProject());
          LayoutInfo layout =
              (LayoutInfo) JavaInfoUtils.createJavaInfo(
                  getEditor(),
                  layoutClass,
                  new ConstructorCreationSupport(creationId, true));
          setLayout(layout);
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.LayoutInfo

  private void initialize_createImplicitLayout() throws Exception {
    if (hasLayout()) {
      AstEditor editor = getEditor();
      Object layout = ReflectionUtils.invokeMethod(getObject(), "getLayout()");
      // create implicit layout model
      LayoutInfo implicitLayout;
      CreationSupport creationSupport = new ImplicitLayoutCreationSupport(this);
      if (layout == null) {
        implicitLayout = createDefaultImplicitLayout(creationSupport);
      } else {
        implicitLayout =
            (LayoutInfo) JavaInfoUtils.createJavaInfo(editor, layout.getClass(), creationSupport);
      }
      // initialize layout model
      {
        // set variable support
        {
          VariableSupport variableSupport = new ImplicitLayoutVariableSupport(implicitLayout);
          implicitLayout.setVariableSupport(variableSupport);
        }
        // set association
        implicitLayout.setAssociation(new ImplicitObjectAssociation(this));
        // add as child
        addChild(implicitLayout);
      }
    }
  }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.LayoutInfo

    putArbitraryValue(KEY_DONT_SET_IMPLICIT_LAYOUT, Boolean.TRUE);
    startEdit();
    try {
      // remove old layout
      {
        LayoutInfo oldLayout = getLayout();
        oldLayout.delete();
      }
      // set new layout
      VariableSupport variableSupport =
          new EmptyInvocationVariableSupport(newLayout, "%parent%.setLayout(%child%)", 0);
      JavaInfoUtils.add(
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.LayoutInfo

    //
    // Implementation
    //
    ////////////////////////////////////////////////////////////////////////////
    private void update() {
      LayoutInfo layout = m_container.getLayout();
      // check for new LayoutInfo, remove old SelectionEditPolicy's
      {
        if (m_layout != null && layout != m_layout) {
          undecorateChildren();
        }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.LayoutInfo

  // Command
  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  protected Command getCreateCommand(Object newObject, Object referenceObject) {
    final LayoutInfo newLayout = (LayoutInfo) newObject;
    return new EditCommand(m_container) {
      @Override
      protected void executeEdit() throws Exception {
        m_container.setLayout(newLayout);
      }
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.LayoutInfo

  @Override
  protected void refreshEditPolicies() {
    super.refreshEditPolicies();
    // support for dropping components
    if (m_container.hasLayout()) {
      LayoutInfo layout = m_container.getLayout();
      if (m_currentLayout != layout) {
        LayoutEditPolicy policy = LayoutPolicyUtils.createLayoutEditPolicy(this, layout);
        if (policy != null) {
          m_currentLayout = layout;
          installEditPolicy(EditPolicy.LAYOUT_ROLE, policy);
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.layout.LayoutInfo

          ComponentDescriptionHelper.getDescription(editor, layoutClass);
      ObjectInfoAction action = new ObjectInfoAction(this) {
        @Override
        protected void runEx() throws Exception {
          description.ensureLibraries(editor.getJavaProject());
          LayoutInfo layout =
              (LayoutInfo) JavaInfoUtils.createJavaInfo(
                  getEditor(),
                  layoutClass,
                  new ConstructorCreationSupport(creationId, true));
          setLayout(layout);
View Full Code Here

Examples of com.google.gdt.eclipse.designer.gxt.model.layout.LayoutInfo

      // check if same implicit already exists
      if (initialize_removeImplicitLayout(layout)) {
        return;
      }
      // create layout model
      LayoutInfo implicitLayout;
      CreationSupport creationSupport = new ImplicitLayoutCreationSupport(this);
      if (layout == null) {
        implicitLayout = createDefaultImplicitLayout(editor, creationSupport);
      } else {
        Class<?> layoutClass = layout.getClass();
        implicitLayout =
            (LayoutInfo) JavaInfoUtils.createJavaInfo(editor, layoutClass, creationSupport);
      }
      // set variable support
      VariableSupport variableSupport = new ImplicitLayoutVariableSupport(implicitLayout);
      implicitLayout.setVariableSupport(variableSupport);
      // set association
      implicitLayout.setAssociation(new ImplicitObjectAssociation(this));
      // add as child
      addChildFirst(implicitLayout);
    }
  }
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.