Package org.apache.niolex.notify

Examples of org.apache.niolex.notify.Notify$Listener


         private final boolean hidePrivate = vizState.hidePrivate(), hideMeta = vizState.hideMeta();
         {
            do_start();
            setRootVisible(false);
            setShowsRootHandles(false);
            listeners.add(new Listener() {
               public Object do_action(Object sender, Event event) { return null; }
               public Object do_action(Object sender, Event event, Object arg) { zoom(arg); return null; }
            });
         }
         @Override public String convertValueToText(Object value, boolean sel, boolean expand, boolean leaf, int i, boolean focus) {
View Full Code Here


    /**
     * Test method for {@link org.apache.niolex.notify.Notify#deleteProperty(byte[])}.
     */
    @Test
    public void testDeleteProperty() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        boolean b = notify.deleteProperty("tmpkey");
        System.out.println("DeleteProperty res " + b);
    }
View Full Code Here

    /**
     * Test method for {@link org.apache.niolex.notify.Notify#deleteProperty(byte[])}.
     */
    @Test
    public void testDeletePropertyNotFound() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        boolean b = notify.deleteProperty("tmpkey-lex-22");
        assertFalse(b);
    }
View Full Code Here

    /**
     * Test method for {@link org.apache.niolex.notify.Notify#replaceProperty(byte[], byte[])}.
     */
    @Test
    public void testReplaceProperty() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        notify.replaceProperty("tmpkey".getBytes(), "Love this.".getBytes());
        System.out.println("After --------- tmpkey -------------- change");
    }
View Full Code Here

    /**
     * Test method for {@link org.apache.niolex.notify.Notify#onDataChange(byte[])}.
     */
    @Test
    public void testOnDataChange() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        notify.onDataChange("Not yet implemented".getBytes());
    }
View Full Code Here

    /**
     * Test method for {@link org.apache.niolex.notify.Notify#onChildrenChange(java.util.List)}.
     */
    @Test
    public void testOnChildrenChange() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        List<String> list = new ArrayList<String>();
        list.add("Good");
        list.add("Good Morning#");
        list.add("HXBlcm1rZXlDbGllbnQgZW52aXJvbm1lbnQ6b3MubmFtZT1XaW5kb3dzIFhQ");
        notify.onChildrenChange(list);
    }
View Full Code Here

    /**
     * Test method for {@link org.apache.niolex.notify.Notify#getProperty(byte[])}.
     */
    @Test
    public void testGetPropertyBytes() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        byte[] v = notify.getProperty("love".getBytes());
        assertEquals(new String(v), "lex");
    }
View Full Code Here

    /**
     * Test method for {@link org.apache.niolex.notify.Notify#getProperty(org.apache.niolex.notify.ByteArray)}.
     */
    @Test
    public void testGetPropertyByteArray() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        byte[] v = notify.getProperty(new ByteArray("love".getBytes()));
        assertEquals(new String(v), "lex");
    }
View Full Code Here

    /**
     * Test method for {@link org.apache.niolex.notify.Notify#getProperty(org.apache.niolex.notify.ByteArray)}.
     */
    @Test
    public void testGetPropertyByteArrayStr() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        String v = notify.getProperty("love");
        assertEquals(v, "lex");
    }
View Full Code Here

    /**
     * Test method for {@link org.apache.niolex.notify.Notify#getProperty(org.apache.niolex.notify.ByteArray)}.
     */
    @Test
    public void testGetPropertyByteArrayStrNull() {
        Notify notify = App.instance().getNotify("/notify/test/tmp");
        String v = notify.getProperty("love my best");
        assertNull(v);
    }
View Full Code Here

TOP

Related Classes of org.apache.niolex.notify.Notify$Listener

Copyright © 2018 www.massapicom. 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.