Examples of View


Examples of javax.swing.text.View

     * Returns the baseline for single line text components, like
     * <code>JTextField</code>.
     */
    private static int getSingleLineTextBaseline(JTextComponent textComponent,
                                                 int h) {
        View rootView = textComponent.getUI().getRootView(textComponent);
        if (rootView.getViewCount() > 0) {
            Insets insets = textComponent.getInsets();
            int height = h - insets.top - insets.bottom;
            int y = insets.top;
            View fieldView = rootView.getView(0);
      int vspan = (int)fieldView.getPreferredSpan(View.Y_AXIS);
      if (height != vspan) {
    int slop = height - vspan;
    y += slop / 2;
      }
            FontMetrics fm = textComponent.getFontMetrics(
View Full Code Here

Examples of jfix.zk.View

      return parameter.getKey();
    case 1:
      String value = parameter.getValue();
      int index = value.indexOf("\n");
      if (index != -1) {
        return new View(value, new Label(value.substring(0, index)
            + " [...]"));
      } else {
        return parameter.getValue();
      }
    }
View Full Code Here

Examples of lbms.azcatdest.gui.View

        pluginInterface.getUIManager().addUIListener(new UIManagerListener() {
            public void UIAttached(UIInstance instance) {
              if (instance instanceof UISWTInstance) {
                swtInstance = (UISWTInstance)instance;
                display = swtInstance.getDisplay();
                myView = new View(pluginInterface);
                swtInstance.addView(UISWTInstance.VIEW_MAIN, View.VIEWID, myView);
                if(isPluginAutoOpen()){
                    swtInstance.openMainView(View.VIEWID,myView,null);
                }
              }
View Full Code Here

Examples of liquibase.structure.core.View

    @Test
    public void appliesTo() {
        ChangeMetaData metaData = new ChangeMetaData("x", "y", 5, new String[] {"table", "column"}, null, null);
        assertTrue(metaData.appliesTo(new Table()));
        assertTrue(metaData.appliesTo(new Column()));
        assertFalse(metaData.appliesTo(new View()));
    }
View Full Code Here

Examples of lmnd.model.command.View

                // Get directory name.
                File file = getSelectedFile();
                CommandData data = new CommandData();
                data.addItem(Keys.FILE, file);
                // Create command.
                View view = new View();
                try {
                        view.perform(data);
                } catch (Exception exception) {
                        exception.printStackTrace();
                }
        }
View Full Code Here

Examples of lotus.domino.View

      cacheFilled = true;
      List<String> allEnvs = new ArrayList<String>();
      Database db = ExtLibUtil.getCurrentDatabase();
      if(db!=null) {
        View v = db.getView("AllEnvironments");
        if(v!=null) {
          ViewEntryCollection vc = v.getAllEntries();
          for(ViewEntry e=vc.getFirstEntry(); e!=null; e=vc.getNextEntry()) {
            Document d = e.getDocument();
            try {
              PlaygroundEnvironment env = readEnvironment(d);
              if(envs.length==0 || StringUtil.contains(envs, env.getName())) {
View Full Code Here

Examples of mallemuck.model.command.View

                // Get directory name.
                File file = getSelectedFile();
                CommandData data = new CommandData();
                data.addItem(Keys.FILE, file);
                // Create command.
                View view = new View();
                try {
                        view.perform(data);
                } catch (Exception exception) {
                        exception.printStackTrace();
                }
        }
View Full Code Here

Examples of multididdy_view.View

       
       
        myClient.sendMessage(up);
       
       
        view= new View();
        view.addInputListener(this);
    }
View Full Code Here

Examples of net.datacrow.console.views.View

        @Override
        public void run() {
            try {
                client.initialize();
               
                View view = DcModules.getCurrent().getCurrentSearchView();
                Collection<DcObject> objects = new ArrayList<DcObject>();
                objects.addAll(client.getItemPickMode() == _ALL ? view.getItems() : view.getSelectedItems());               
                client.initProgressBar(objects.size());
               
                for (DcObject dco : objects) {
                    if (client.isCancelled()) break;
                   
View Full Code Here

Examples of net.gridshield.nexsm.entityclasses.View

            } else { // let's assume the user wants to load the view
                dvtmp.setAvailable(true);
            }
        }
        if (tag.equals("mapdefinition")) { mapdefinition = true;
            vtmp = new View();
            if (h.containsKey("view")) {
                view = (String)h.get("view");
                if (view != null && view.length() > 0) {
                    vtmp.setName(view);
                    vtmp.setLoadView(true); // this view has extra data and is supposed to be loaded (the map)
                }
            }
            if (h.containsKey("BackgroundImage")) {
                vtmp.setBackgroundImage((String)h.get("BackgroundImage"));
            }
            if (h.containsKey("LayoutTranslateX")) {
                try {
                    translateX = Double.parseDouble((String)h.get("LayoutTranslateX"));
                    vtmp.setLayoutTranslateX(translateX);
                } catch (NumberFormatException nfe) {}
            }
            if (h.containsKey("LayoutTranslateY")) {
                try {
                    translateY = Double.parseDouble((String)h.get("LayoutTranslateY"));
                    vtmp.setLayoutTranslateY(translateY);
                } catch (NumberFormatException nfe) {}
            }
            if (h.containsKey("ViewTranslateX")) {
                try {
                    translateX = Double.parseDouble((String)h.get("ViewTranslateX"));
                    vtmp.setViewTranslateX(translateX);
                } catch (NumberFormatException nfe) {}
            }
            if (h.containsKey("ViewTranslateY")) {
                try {
                    translateY = Double.parseDouble((String)h.get("ViewTranslateY"));
                    vtmp.setViewTranslateY(translateY);
                } catch (NumberFormatException nfe) {}
            }
            if (h.containsKey("scale")) {
                try {
                    scale = Double.parseDouble((String)h.get("scale"));
                    vtmp.setScale(scale);
                } catch (NumberFormatException nfe) {}
            }
            if (vtmp != null)
                ll.addFirst(vtmp);
       
        } //mapdefinition
        if (tag.equals("config")) { conf = true; }
        if (tag.equals("layouttranslatex")) { layouttranslatex = true; }
        if (tag.equals("layouttranslatey")) { layouttranslatey = true; }
        if (tag.equals("viewtranslatex")) { viewtranslatex = true; }
        if (tag.equals("viewtranslatey")) { viewtranslatey = true; }
        if (tag.equals("scale")) { sscale = true; }
        if (tag.equals("backgroundimage")) { backgroundimage = true; }
        if (tag.equals("backgroundtitle")) { backgroundtitle = true; }
       
        if (tag.equals("testingpuller")) {
            ctp = new ConfTestPuller();
            testingpuller = true; }
       
        if (tag.equals("edge")) { edge = true;
            metmp = new MapEdge();
            if (h.containsKey("hidden")) {
                metmp.setHidden(Boolean.parseBoolean((String)h.get("hidden")));
            }
        }
        if (edge && tag.equals("first")) { first = true; }
        if (edge && tag.equals("second")) { second = true; }
        if (edge && tag.equals("color")) { color = true; }
       
        if (tag.equals("host")) { host = true;
            htmp = new MapHost();
            if (h.containsKey("hidden")) {
                htmp.setHidden(Boolean.parseBoolean((String)h.get("hidden")));
            }
            if (h.containsKey("locked")) {
                htmp.lock(Boolean.parseBoolean((String)h.get("locked")));
            }
        }
       
        if (host) {
            if (tag.equals("label_location")) { label_location = true; }
        }
       
        if (tag.equals("name")) { name = true; }
        if (tag.equals("coords")) { coords = true; }
        if (tag.equals("puller")) { puller = true; putmp = new ConfPuller(); }
        if (tag.equals("pusher")) { pusher = true; pushtmp = new ConfPusher(); }
        if (tag.equals("class")) { sclass = true; }
        if (tag.equals("plugin")) { plugin = true; pltmp = new ConfPlugin(); }
        if (tag.equals("param")) { param = true; patmp = new ConfParam(); }
        if (tag.equals("value")) { value = true; }
        if (tag.equals("type")) { type = true; }
       
        if (tag.equals("views")) { views = true; }
        if (tag.equals("view")) { viewitem = true; vtmp = new View(); }
               
        /* error section */
        if (tag.compareTo("error") == 0) { errorDefinition = true; etmp = new ErrorMapper();}
        if (errorDefinition) {
            if (tag.compareTo("type") == 0) { errorType = true; }
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.