Examples of current()


Examples of javax.swing.text.ElementIterator.current()

    public Element getElement(final Element e, final Object attribute,
                              final Object value) {
        final ElementIterator it = new ElementIterator(e);
        while (it.next() != null) {
            final Element current = it.current();
            if (current.getAttributes().containsAttribute(attribute, value)) {
                return current;
            }
        }
        return null;
View Full Code Here

Examples of javax.swing.text.Segment.current()

  public void test(TestHarness harness)     
  {
    char[] ch = new char[] {'A', 'B', 'C', 'D', 'E', 'F', 'G'};
    Segment s = new Segment(ch, 0, 7);
    s.setIndex(2);
    harness.check(s.current(), 'C');
    s.setIndex(6);
    harness.check(s.current(), 'G');
   
    // try bad indices
    boolean pass = false;
View Full Code Here

Examples of jline.History.current()

            console.setHistory(history);
            // load history from history file
            history.moveToFirstEntry();

            while (history.next()) {
                String entry = history.current();
                if (!entry.equals("")) {
                    addToHistory(commandCount, entry);
                }
                commandCount++;
            }
View Full Code Here

Examples of jline.console.history.History.current()

    }

    private void assertHistory(String expected, ConsoleReader consoleReader) {
        History history = consoleReader.getHistory();
        history.previous();
        assertEquals(expected, history.current());
    }

    @Test
    public void testStoringHistoryWithExpandEventsOff() throws Exception {
        ConsoleReader reader = createConsole("foo ! bar\r\n");
View Full Code Here

Examples of jline.console.history.MemoryHistory.current()

        String line = reader.readLine();
        assertEquals("foo ! bar", line);

        history.previous();
        assertEquals("foo \\! bar", history.current());

        reader = createConsole("cd c:\\docs\r\n");
        history = new MemoryHistory();
        reader.setHistory(history);
        reader.setExpandEvents(true);
View Full Code Here

Examples of krati.retention.clock.SourceWaterMarksClock.current()

        while(iter.hasNext()) {
            sources2.add(iter.next());
        }
       
        SourceWaterMarksClock clock2 = new SourceWaterMarksClock(sources2, _sourceWaterMarks);
        assertTrue(_clock.current().compareTo(clock2.current()) == Occurred.EQUICONCURRENTLY);
    }
   
    public void testFlush() {
        Iterator<String> iter;
       
View Full Code Here

Examples of me.aurous.ui.panels.ControlPanel.current()

    final ControlPanel panel = UISession.getControlPanel();
    final int percentage = (int) (((currentTime * 100.0) / totalDuration) + 0.5); // jesus
    final double seconds = currentTime / 1000.0;
    UISession.getControlPanel().seek().setValue(percentage);
    panel.seek().setValue(percentage);
    panel.current().setText(MediaUtils.calculateTime((int) seconds));

  }

}
View Full Code Here

Examples of net.citizensnpcs.waypoints.WaypointPath.current()

    public void restartAtIndex() {
        WaypointPath path = getNPC().getWaypoints();
        if (path.size() == 0)
            return;
        path.setIndex(index);
        getNPC().teleport(path.current().getLocation());
    }
}
View Full Code Here

Examples of net.helipilot50.stocktrade.framework.CircularList.current()

         */
        CircularList partners = getPartners((JComponent)comp);
        if (partners == null) return null;
        if (partners.find(comp)){
            partners.move();
            return (JComponent)partners.current();
        }
        return null;
    }
    public static CircularList getPartners(Component comp){
        return (CircularList)((JComponent)comp).getClientProperty("qq_WidthPartners");
View Full Code Here

Examples of net.sf.saxon.om.SequenceIterator.current()

        checkNotClosed();
        checkOnlyReadOnce();
        SequenceIterator iter = iterator;
        if (isOnItem()) {
            iter = new Insert.InsertIterator(
                    SingletonIterator.makeIterator(iter.current()),
                    iter, 0);
        }
        try {
            QueryResult.serializeSequence(iter, getConfiguration(), os, props);
        } catch (XPathException e) {
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.