Package org.jwall.tools

Examples of org.jwall.tools.TimeFormat


            setIcon( WebPolicyEditor.getIcon( "org.jwall.web.policy.CheckToken" ) );
        }

        if( arg1.getType() == TreeNode.CREATE_TOKEN_NODE ){
            CreateToken ct = (CreateToken) arg1;
            TimeFormat fmt = new TimeFormat();
            StringBuffer s = new StringBuffer( "<html>Create Token: <i>" );
            s.append( ct.getToken() );

            if( ct.getValue() != null ){
                s.append( "</i>, value: " );
                s.append( ct.getValue() );
            }
           
            s.append( "</i>, expires: <i>" );
            s.append( fmt.format( ct.getLifeTime().longValue() ) );
            s.append( "</i></html>" );
            setText( s.toString() );
            setIcon( WebPolicyEditor.getIcon( "org.jwall.web.policy.CreateToken" ) );
        }
View Full Code Here

TOP

Related Classes of org.jwall.tools.TimeFormat

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.