Examples of Presentation


Examples of com.aspose.slides.Presentation

public class AsposeCreateTable
{
  public static void main(String[] args)
  {
    //Instantiate Presentation class that represents PPTX file
      Presentation pres = new Presentation();

      //Access first slide
      ISlide sld = pres.getSlides().get_Item(0);

      //Define columns with widths and rows with heights
      double[] dblCols = { 50, 50, 50 };
      double[] dblRows = { 50, 30, 30, 30, 30 };

      //Add table shape to slide
      ITable tbl = sld.getShapes().addTable(100, 50, dblCols, dblRows);

      //Set border format for each cell
      for(int row = 0; row < tbl.getRows().size(); row++)
      {
          for (int cell = 0; cell < tbl.getRows().get_Item(row).size(); cell++)
          {
              tbl.getRows().get_Item(row).get_Item(cell).getBorderTop().getFillFormat().setFillType(FillType.Solid);
              tbl.getRows().get_Item(row).get_Item(cell).getBorderTop().getFillFormat().getSolidFillColor().setColor(Color.RED);
              tbl.getRows().get_Item(row).get_Item(cell).getBorderTop().setWidth(5);

              tbl.getRows().get_Item(row).get_Item(cell).getBorderBottom().getFillFormat().setFillType(FillType.Solid);
              tbl.getRows().get_Item(row).get_Item(cell).getBorderBottom().getFillFormat().getSolidFillColor().setColor(Color.RED);
              tbl.getRows().get_Item(row).get_Item(cell).getBorderBottom().setWidth(5);

              tbl.getRows().get_Item(row).get_Item(cell).getBorderLeft().getFillFormat().setFillType(FillType.Solid);
              tbl.getRows().get_Item(row).get_Item(cell).getBorderLeft().getFillFormat().getSolidFillColor().setColor(Color.RED);
              tbl.getRows().get_Item(row).get_Item(cell).getBorderLeft().setWidth(5);

              tbl.getRows().get_Item(row).get_Item(cell).getBorderRight().getFillFormat().setFillType(FillType.Solid);
              tbl.getRows().get_Item(row).get_Item(cell).getBorderRight().getFillFormat().getSolidFillColor().setColor(Color.RED);
              tbl.getRows().get_Item(row).get_Item(cell).getBorderRight().setWidth(5);
          }
      }
      //Merge cells 1 & 2 of row 1
      tbl.mergeCells(tbl.getRows().get_Item(0).get_Item(0), tbl.getRows().get_Item(1).get_Item(0), false);

      //Add text to the merged cell
      tbl.getRows().get_Item(0).get_Item(0).getTextFrame().setText("Merged Cells");

      //Save PPTX to Disk
      pres.save("data/pptx4j/Tables-Aspose.pptx", SaveFormat.Pptx);
     
      System.out.println("Table Created Successfully...");
  }
View Full Code Here

Examples of com.eclipsesource.tabris.widgets.Video.Presentation

      } );
    }

    private void handlePresentationMode( Widget widget, JsonObject properties ) {
      String presentationMode = properties.get( PROPERTY_PRESENTATION ).asString();
      Presentation newMode = Presentation.valueOf( presentationMode.toUpperCase() );
      Video video = ( Video )widget;
      video.getAdapter( PlaybackAdapter.class ).getOptions().put( PlaybackOptions.PRESENTATION, newMode );
      notifyListenersAboutPresentationModeChange( newMode, video );
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

    @Override
    public void update(final AnActionEvent pEvent) {
        if (pEvent == null)
            return;

        final Presentation p = pEvent.getPresentation();
        if (p == null)
            return;

        p.setEnabled(problem.isValid());
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

        Project project = ActionUtil.getProject(component);
        return new SelectConnectionActionGroup(project);
    }

    public synchronized void update(AnActionEvent e) {
        Presentation presentation = e.getPresentation();
        String text = NAME;
        Icon icon = null;

        Project project = ActionUtil.getProject(e);
        VirtualFile virtualFile = e.getData(PlatformDataKeys.VIRTUAL_FILE);
        if (project != null && virtualFile != null) {
            FileConnectionMappingManager connectionMappingManager = FileConnectionMappingManager.getInstance(project);
            ConnectionHandler activeConnection = connectionMappingManager.getActiveConnection(virtualFile);
            if (activeConnection != null) {
                text = NamingUtil.enhanceUnderscoresForDisplay(activeConnection.getQualifiedName());
                icon = activeConnection.getIcon();
            }

            boolean isConsole = virtualFile instanceof SQLConsoleFile;
            presentation.setVisible(!isConsole);

            if (virtualFile.isInLocalFileSystem()) {
                DDLFileAttachmentManager fileAttachmentManager = DDLFileAttachmentManager.getInstance(project);
                DBSchemaObject editableObject = fileAttachmentManager.getEditableObject(virtualFile);
                if (editableObject != null) {
                    boolean isOpened = DatabaseFileSystem.getInstance().isFileOpened(editableObject);
                    presentation.setEnabled(!isOpened);
                }
            }
        }

        presentation.setText(text);
        presentation.setIcon(icon);
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

            }
        }
    }

    public void update(AnActionEvent e) {
        Presentation presentation = e.getPresentation();
        presentation.setText("Forward");

        Project project = ActionUtil.getProject(e);
        if (project != null) {
            DatabaseBrowserManager browserManager = DatabaseBrowserManager.getInstance(project);
            DatabaseBrowserTree activeTree = browserManager.getActiveBrowserTree();
            presentation.setEnabled(activeTree != null && activeTree.getNavigationHistory().hasNext());
        }
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

            }
        }
    }

    public void update(AnActionEvent e) {
        Presentation presentation = e.getPresentation();
        presentation.setText("Expand all");
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

                    }
                }
            }
        }

        Presentation presentation = e.getPresentation();
        presentation.setText(text);
        presentation.setIcon(icon);
        presentation.setVisible(visible);
        presentation.setEnabled(enabled);
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

            globalSettingsDialog.show();
        }
    }

    public void update(AnActionEvent e) {
        Presentation presentation = e.getPresentation();
        presentation.setText("Settings");
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

            }
        }
    }

    public void update(AnActionEvent e) {
        Presentation presentation = e.getPresentation();
        presentation.setText("Back");

        Project project = ActionUtil.getProject(e);
        if (project != null) {
            DatabaseBrowserManager browserManager = DatabaseBrowserManager.getInstance(project);
            DatabaseBrowserTree activeTree = browserManager.getActiveBrowserTree();
            presentation.setEnabled(activeTree != null && activeTree.getNavigationHistory().hasPrevious());
        }
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.Presentation

            }
        }
    }

    public void update(AnActionEvent e) {
        Presentation presentation = e.getPresentation();
        presentation.setText("Collapse all");
    }
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.