Examples of LayoutOptions


Examples of org.kiji.schema.layout.TableLayoutBuilder.LayoutOptions

    // Normalize the new layout to use schema UIDs:
    final TableLayoutBuilder layoutBuilder = new TableLayoutBuilder(mSchemaTable);
    final TableLayoutDesc update = layoutBuilder.normalizeTableLayoutDesc(
        layoutUpdate,
        new LayoutOptions()
            .setSchemaFormat(SchemaFormat.UID));

    // Fetch all the layout history:
    final List<KijiTableLayout> layouts =
        getTableLayoutVersions(tableName, HConstants.ALL_VERSIONS);
View Full Code Here

Examples of org.kiji.schema.layout.TableLayoutBuilder.LayoutOptions

    // Normalize the new layout to use schema UIDs:
    TableLayoutBuilder layoutBuilder = new TableLayoutBuilder(mSchemaTable);
    final TableLayoutDesc update = layoutBuilder.normalizeTableLayoutDesc(
        layoutUpdate,
        new LayoutOptions()
            .setSchemaFormat(SchemaFormat.UID));

    // Fetch all the layout history:
    final List<KijiTableLayout> layouts =
        getTableLayoutVersions(tableName, HConstants.ALL_VERSIONS);
View Full Code Here

Examples of org.primefaces.cookbook.component.LayoutOptions

  private LayoutOptions layoutOptions;

  @PostConstruct
  protected void initialize() {
    layoutOptions = new LayoutOptions();

    // for all panes
    LayoutOptions panes = new LayoutOptions();
    panes.addOption("resizable", true);
    panes.addOption("closable", true);
    panes.addOption("slidable", false);
    panes.addOption("spacing", 6);
    panes.addOption("resizeWithWindow", false);
    panes.addOption("resizeWhileDragging", true);
    layoutOptions.setPanesOptions(panes);

    // north pane
    LayoutOptions north = new LayoutOptions();
    north.addOption("resizable", false);
    north.addOption("closable", false);
    north.addOption("size", 60);
    layoutOptions.setNorthOptions(north);

    // south pane
    LayoutOptions south = new LayoutOptions();
    south.addOption("resizable", false);
    south.addOption("closable", false);
    south.addOption("size", 40);
    layoutOptions.setSouthOptions(south);

    // center pane
    LayoutOptions center = new LayoutOptions();
    center.addOption("resizable", false);
    center.addOption("closable", false);
    center.addOption("resizeWhileDragging", false);
    center.addOption("minWidth", 200);
    center.addOption("minHeight", 60);
    layoutOptions.setCenterOptions(center);

    // west pane
    LayoutOptions west = new LayoutOptions();
    west.addOption("size", 210);
    west.addOption("minSize", 180);
    west.addOption("maxSize", 500);
    layoutOptions.setWestOptions(west);

    // east pane
    LayoutOptions east = new LayoutOptions();
    east.addOption("size", 448);
    east.addOption("minSize", 180);
    east.addOption("maxSize", 650);
    layoutOptions.setEastOptions(east);

    // nested east layout
    LayoutOptions childEastOptions = new LayoutOptions();
    east.setChildOptions(childEastOptions);

    // east-center pane
    LayoutOptions eastCenter = new LayoutOptions();
    eastCenter.addOption("minHeight", 60);
    childEastOptions.setCenterOptions(eastCenter);

    // south-center pane
    LayoutOptions southCenter = new LayoutOptions();
    southCenter.addOption("size", "70%");
    southCenter.addOption("minSize", 60);
    childEastOptions.setSouthOptions(southCenter);
  }
View Full Code Here

Examples of statechum.analysis.learning.Visualiser.LayoutOptions

                            {
                              Configuration config = Configuration.getDefaultConfiguration().copy();
                              LearnerGraphND machine = new LearnerGraphND(config);Synapse.StatechumProcess.parseStatemachine(message.elementAt(2),machine,null,true);
                              DirectedSparseGraph fsmPicture = machine.pathroutines.getGraph();
                              if (!fsmPicture.containsUserDatumKey(JUConstants.LAYOUTOPTIONS))
                                fsmPicture.addUserDatum(JUConstants.LAYOUTOPTIONS,new LayoutOptions(), UserData.SHARED);
                              int windowNumber = setOptions(message,3,fsmPicture);
                              if (windowNumber >= 0)
                                Visualiser.updateFrameWithPos(fsmPicture,windowNumber);

                              outcome = new OtpErlangTuple(new OtpErlangObject[]{ref,msgOk});
View Full Code Here

Examples of statechum.analysis.learning.Visualiser.LayoutOptions

  }

  @Test
  public void testLayoutOptions1()
  {
    final LayoutOptions options = new LayoutOptions();
   
    checkForCorrectException(new whatToRun() { public @Override void run() {
      Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangTuple(new OtpErlangObject[0]));
    }},ClassCastException.class,"OtpErlangTuple");// when we do not collect output, no response is sent.
   
View Full Code Here

Examples of statechum.analysis.learning.Visualiser.LayoutOptions

  }
 
  @Test
  public void testLayoutOptions2()
  {
    final LayoutOptions options = new LayoutOptions();
   
    checkForCorrectException(new whatToRun() { public @Override void run() {
      Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[]{new OtpErlangString("a")}));
    }},ClassCastException.class,"OtpErlangString");// when we do not collect output, no response is sent.
   
View Full Code Here

Examples of statechum.analysis.learning.Visualiser.LayoutOptions

  }

  @Test
  public void testLayoutOptions3()
  {
    final LayoutOptions options = new LayoutOptions();
   
    Assert.assertNull(options.ignoredStates);
    Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[0]));
    Assert.assertNull(options.ignoredStates);
  }
View Full Code Here

Examples of statechum.analysis.learning.Visualiser.LayoutOptions

  }

  @Test
  public void testLayoutOptions4()
  {
    final LayoutOptions options = new LayoutOptions();
   
    Assert.assertNull(options.ignoredStates);
    Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[]{new OtpErlangAtom("a")}));
    Assert.assertNotNull(options.ignoredStates);
    Assert.assertEquals(1,options.ignoredStates.size());Assert.assertEquals("a",options.ignoredStates.iterator().next());
View Full Code Here

Examples of statechum.analysis.learning.Visualiser.LayoutOptions


  @Test
  public void testLayoutOptions5()
  {
    final LayoutOptions options = new LayoutOptions();
   
    Assert.assertNull(options.ignoredStates);
    Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[]{new OtpErlangAtom("b"),new OtpErlangAtom("a")}));
    Assert.assertNotNull(options.ignoredStates);
    Assert.assertEquals(2,options.ignoredStates.size());
View Full Code Here

Examples of statechum.analysis.learning.Visualiser.LayoutOptions

 
  /** Tests the copying process for ignored states. */
  @Test
  public void testLayoutOptions6()
  {
    final LayoutOptions options = new LayoutOptions();
   
    Assert.assertNull(options.ignoredStates);
    Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[]{new OtpErlangAtom("b"),new OtpErlangAtom("a")}));
    Assert.assertNotNull(options.ignoredStates);
    Assert.assertEquals(2,options.ignoredStates.size());
    Iterator<String> ignoreIterator = options.ignoredStates.iterator();
    Assert.assertEquals("b",ignoreIterator.next());Assert.assertEquals("a",ignoreIterator.next());
   
    LayoutOptions copy = options.copy();
    Synapse.StatechumProcess.setStateNamesToBeIgnored(options, new OtpErlangList(new OtpErlangObject[]{new OtpErlangAtom("c")}));
    Assert.assertNotNull(options.ignoredStates);
    Assert.assertEquals(3,options.ignoredStates.size());
    ignoreIterator = options.ignoredStates.iterator();
    Assert.assertEquals("b",ignoreIterator.next());Assert.assertEquals("c",ignoreIterator.next());Assert.assertEquals("a",ignoreIterator.next());
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.