Examples of Navigator


Examples of org.analyse.core.gui.panel.Navigator

        //this.add(BorderLayout.EAST, new AnalyseBar(Constantes.RELEASE));
        this.setBorder(BorderFactory.createEtchedBorder());
      }
    });
    /* Centre */
    navigator = new Navigator(this);
    Main.splash.setProgress(50);

    center = new JPanel(new BorderLayout());
    center.add(BorderLayout.WEST, navigator);
    center.add(BorderLayout.CENTER, new JPanel());
View Full Code Here

Examples of org.apache.cocoon.stax.navigation.Navigator

     * @param events list for caching non link info specific events.
     * @return a linkInfo object
     * @throws XMLStreamException
     */
    private LinkInfo collectLinkInfo(List<XMLEvent> events) throws XMLStreamException {
        Navigator linkInfoNavigator = new InSubtreeNavigator(LINK_INFO_EL);
        Navigator linkInfoPartNavigator = new FindStartElementNavigator(LINK_PART_INFO_EL);
        LinkInfo linkInfo = null;

        while (this.getParent().hasNext()) {
            XMLEvent event = this.getParent().peek();

            if (linkInfoNavigator.fulfillsCriteria(event)) {
                event = this.getParent().nextEvent();
                if (linkInfoPartNavigator.fulfillsCriteria(event)) {
                    if (linkInfo == null) {
                        throw new ProcessingException(new NullPointerException(
                                "The LinkInfo object mustn't be null here."));
                    }

View Full Code Here

Examples of org.focusns.common.web.widget.mvc.support.Navigator

            }
            //
            widgetRequest.setAttribute("requestType", "action");
            widgetRequest.setAttribute("widgetConfig", widgetConfig);
            //
            Navigator navigator = Navigator.reset();
            //
            for (WidgetActionInterceptor actionInterceptor : widgetActionInterceptors) {
                actionInterceptor.beforeAction(request, response);
            }
            widgetContext.getRequestDispatcher(actionPath).forward(widgetRequest, widgetResponse);
            //
            for (WidgetActionInterceptor actionInterceptor : widgetActionInterceptors) {
                actionInterceptor.afterAction(request, response);
            }
            //
            if (!StringUtils.hasText(navigator.getNavigateTo())) {
                widgetResponse.flushBuffer();
                return;
            }
            //
            String pathExpr = widgetConfig.getNavigationMap().get(navigator.getNavigateTo());
            if (StringUtils.hasText(pathExpr)) {
                Expression expression = expressionParser.parseExpression(pathExpr, ParserContext.TEMPLATE_EXPRESSION);
                EvaluationContext evaluationContext = createEvaluationContext();
                String path = (String) expression.getValue(evaluationContext, request);
                //
                request.getSession().setAttribute("redirectAttributes", navigator.getRedirectAttributes());
                response.sendRedirect(request.getContextPath() + path);
            }
            //
        } catch (Exception e) {
            log.error(e.getMessage(), e);
View Full Code Here

Examples of org.jaxen.Navigator

  public static final QName QNAME = new QName("http://incubator.apache.org/abdera", "resolve");
 
  public Object call(Context context, List args) throws FunctionCallException {
    List<IRI> results = new ArrayList<IRI>();
    if (args.isEmpty()) return null;
    Navigator navigator = context.getNavigator();
    for(Object obj : args) {
      if (obj instanceof List) {
        for (Object o : (List)obj) {
          try {
            String value = StringFunction.evaluate(o, navigator);
View Full Code Here

Examples of org.jaxen.Navigator

            log.warn("Synapse context has not been set for the XPath extension function" +
                "'synapse:get-property(prop-name)'");
            return null;

        } else {
            Navigator navigator = context.getNavigator();
            Iterator iter = args.iterator();
            while (iter.hasNext()) {
                String key = StringFunction.evaluate(iter.next(), navigator);
                // ignore if more than one argument has been specified
                Object result = synCtx.getProperty(key);
View Full Code Here

Examples of org.jaxen.Navigator

    public boolean matches(Object node,
                           ContextSupport contextSupport)
    {
        //System.err.println( "DefaultNameStep.matches(" + node + ")" );

        Navigator nav  = contextSupport.getNavigator();

        String  myPrefix  = getPrefix();        
        String  myUri     = null;
        boolean hasPrefix = ( myPrefix != null ) && (! ( "".equals( myPrefix ) ) );

        String nodeUri  = null;
        String nodeName = null;

        if ( nav.isElement( node ) )
        {
            nodeUri  = nav.getElementNamespaceUri( node );
            nodeName = nav.getElementName( node );
        }
        else if ( nav.isAttribute( node ) )
        {
            nodeUri  = nav.getAttributeNamespaceUri( node );
            nodeName = nav.getAttributeName( node );
        }
        else if ( nav.isDocument( node ) )
        {
            return ( ! hasPrefix ) && matchesAnyName;
        }
        else if ( nav.isNamespace( node ) )
        {
            nodeUri = null;
            nodeName = nav.getNamespacePrefix( node );
        }
        else
        {
            // * will only match elements on most axis
            return false;
View Full Code Here

Examples of org.jaxen.Navigator

    }

    public Object evaluate(Context context) throws JaxenException
    {
        ContextSupport support = context.getContextSupport();
        Navigator      nav     = support.getNavigator();

        Context absContext = new Context( support );

       
        List contextNodes = context.getNodeSet();

        if ( contextNodes.isEmpty() )
        {
            return Collections.EMPTY_LIST;
        }

        Object firstNode = contextNodes.get( 0 );

        Object docNode   = nav.getDocumentNode( firstNode );

        if ( docNode == null )
        {
            return Collections.EMPTY_LIST;
        }
View Full Code Here

Examples of org.jaxen.Navigator

  public Object evaluate( Context context ) throws JaxenException
    {
    Object lhsValue = getLHS().evaluate( context );
    Object rhsValue = getRHS().evaluate( context );
    Navigator nav = context.getNavigator();

    if( bothAreSets( lhsValue, rhsValue ) )
      {
      return evaluateSetSet( (List) lhsValue, (List) rhsValue, nav );
      }
View Full Code Here

Examples of org.jaxen.Navigator

        return "[(DefaultAndExpr): " + getLHS() + ", " + getRHS() + "]";
    }

    public Object evaluate(Context context) throws JaxenException
    {
        Navigator nav = context.getNavigator();
        Boolean lhsValue = BooleanFunction.evaluate( getLHS().evaluate( context ), nav );

        if ( lhsValue == Boolean.FALSE )
        {
            return Boolean.FALSE;
View Full Code Here

Examples of org.jaxen.Navigator

        return "[(DefaultOrExpr): " + getLHS() + ", " + getRHS() + "]";
    }

    public Object evaluate(Context context) throws JaxenException
    {
        Navigator nav = context.getNavigator();
        Boolean lhsValue = BooleanFunction.evaluate( getLHS().evaluate( context ), nav );

        if ( lhsValue == Boolean.TRUE )
        {
            return Boolean.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.