Package it.pdor.webapp.common.component.tree

Examples of it.pdor.webapp.common.component.tree.IceUserObjectWithStyle


        branchObjectPrimaNota.setId("PrimaNota");
        branchNodePrimaNota.setUserObject(branchObjectPrimaNota);
        branchNodeOperazioniGiornaliere.add(branchNodePrimaNota);

        DefaultMutableTreeNode branchNodeRicercaArticolo = new DefaultMutableTreeNode();
        IceUserObjectWithStyle branchObjectRicercaArticolo = new IceUserObjectWithStyle(
            branchNodeRicercaArticolo);
        branchObjectRicercaArticolo.setText(mb.getMessage("ButtonRicercaArticolo"));
        branchObjectRicercaArticolo.setAction("goToRicercaArticolo");
        branchObjectRicercaArticolo.setLeaf(true);
        branchObjectRicercaArticolo.setId("RicercaArticolo");
        branchNodeRicercaArticolo.setUserObject(branchObjectRicercaArticolo);
        branchNodePrimaNota.add(branchNodeRicercaArticolo);

        DefaultMutableTreeNode branchNodeInserimentoArticolo = new DefaultMutableTreeNode();
        InserimentoArticoloUserObject branchObjectInserimentoArticolo = new InserimentoArticoloUserObject(
            branchNodeInserimentoArticolo);
        branchObjectInserimentoArticolo.setText(mb.getMessage("ButtonInserimentoArticolo"));
        branchObjectInserimentoArticolo.setAction("goToInserimentoDatiArticolo");
        branchObjectInserimentoArticolo.setLeaf(true);
        branchObjectInserimentoArticolo.setId("inserimentoArticolo");
        branchNodeInserimentoArticolo.setUserObject(branchObjectInserimentoArticolo);
        branchNodePrimaNota.add(branchNodeInserimentoArticolo);

        DefaultMutableTreeNode branchNodeCaricamentoArticolo = new DefaultMutableTreeNode();
        IceUserObjectWithStyle branchObjectCaricamentoArticolo = new IceUserObjectWithStyle(
            branchNodeCaricamentoArticolo);
        branchObjectCaricamentoArticolo.setText(mb.getMessage("ButtonCaricamentoArticolo"));
        branchObjectCaricamentoArticolo.setAction("goToCaricamentoArticolo");
        branchObjectCaricamentoArticolo.setLeaf(true);
        branchObjectCaricamentoArticolo.setId("CaricamentoArticolo");
        branchNodeCaricamentoArticolo.setUserObject(branchObjectCaricamentoArticolo);
        branchNodePrimaNota.add(branchNodeCaricamentoArticolo);
      }

      if (isNodeVisible("isModuloContabilitaVisibile.operazioniGiornaliere.partitario")) {
View Full Code Here


  }

  private MutableTreeNode creaNodeStampaEstrattoContoPartitario() {
    DefaultMutableTreeNode branchNodeStampaEstrattoContoPartitario;
    branchNodeStampaEstrattoContoPartitario = new DefaultMutableTreeNode();
    IceUserObjectWithStyle branchObjectStampaEstrattoContoPartitario = new IceUserObjectWithStyle(
        branchNodeStampaEstrattoContoPartitario);
    branchObjectStampaEstrattoContoPartitario.setText(mb.getMessage("ButtonStampaEstrattoContoPartitario"));
    branchObjectStampaEstrattoContoPartitario.setAction("goToStampaEstrattoContoPartitario");
    branchObjectStampaEstrattoContoPartitario.setLeaf(true);
    branchObjectStampaEstrattoContoPartitario.setId("idStampaEstrattoContoPartitario");
    branchNodeStampaEstrattoContoPartitario.setUserObject(branchObjectStampaEstrattoContoPartitario);
    return branchNodeStampaEstrattoContoPartitario;
  }
View Full Code Here

   * @return
   */
  private DefaultMutableTreeNode creaNodeStampaSchedaConto() {
    DefaultMutableTreeNode branchNodeStampaSchedaConto;
    branchNodeStampaSchedaConto = new DefaultMutableTreeNode();
    IceUserObjectWithStyle branchObjectStampaSchedaConto = new SchedaDiContoUserObject(branchNodeStampaSchedaConto);
    branchObjectStampaSchedaConto.setText(mb.getMessage("ButtonStampaSchedaConto"));
    branchObjectStampaSchedaConto.setAction("goToStampaSchedaConto");
    branchObjectStampaSchedaConto.setLeaf(true);
    branchObjectStampaSchedaConto.setId("idStampaSchedaConto");
    branchNodeStampaSchedaConto.setUserObject(branchObjectStampaSchedaConto);
    return branchNodeStampaSchedaConto;
  }
View Full Code Here

  }

  private DefaultMutableTreeNode creaNodeStampaBilancio() {
    DefaultMutableTreeNode branchNodeStampaBilancio;
    branchNodeStampaBilancio = new DefaultMutableTreeNode();
    IceUserObjectWithStyle branchObjectStampaBilancio = new IceUserObjectWithStyle(branchNodeStampaBilancio);
    branchObjectStampaBilancio.setText(mb.getMessage("ButtonStampaBilancio"));
    branchObjectStampaBilancio.setAction("goToStampaBilancio");
    branchObjectStampaBilancio.setLeaf(true);
    branchObjectStampaBilancio.setId("idStampaBilancio");
    branchNodeStampaBilancio.setUserObject(branchObjectStampaBilancio);
    return branchNodeStampaBilancio;
  }
View Full Code Here

  private DefaultMutableTreeNode addTreeNode(CommonMessageBundle mb, String idNode, String text, String action,
      DefaultMutableTreeNode branchNodeFather, boolean leaf, boolean expanded) {

    DefaultMutableTreeNode branchNodeChild = new DefaultMutableTreeNode();
    IceUserObjectWithStyle branchObjectChild = new IceUserObjectWithStyle(branchNodeChild);
    branchObjectChild.setText(mb.getMessage(text));
    branchObjectChild.setLeaf(true);
    if (!leaf)
      branchObjectChild.setExpanded(expanded);
    branchObjectChild.setAction(action);
    branchObjectChild.setLeaf(leaf);
    branchObjectChild.setId(idNode);
    branchNodeChild.setUserObject(branchObjectChild);
    branchNodeChild.setAllowsChildren(!leaf);

    branchNodeFather.add(branchNodeChild);
View Full Code Here

  }

  public DefaultMutableTreeNode creaBranch(String action, String message, boolean isLeaf, boolean isExpanded,
      String id) {
    DefaultMutableTreeNode branchNode = new DefaultMutableTreeNode();
    IceUserObjectWithStyle branchObject = new IceUserObjectWithStyle(branchNode);
    branchObject.setId(id);
    branchObject.setText(message);
    branchObject.setAction(action);
    branchObject.setExpanded(isExpanded);
    branchObject.setLeaf(isLeaf);
    branchNode.setUserObject(branchObject);
    return branchNode;
  }
View Full Code Here

    return branchNodeChiusuraRapporti;
  }

  private MutableTreeNode creaNodeControlloTassiUsura() {
    DefaultMutableTreeNode branchNodeControlloTassiUsura = new DefaultMutableTreeNode();
    IceUserObjectWithStyle branchObjectControlloTassiUsura = new IceUserObjectWithStyle(
        branchNodeControlloTassiUsura);
    branchObjectControlloTassiUsura.setText(mb.getMessage("ButtonControlloTassiUsura"));
    branchObjectControlloTassiUsura.setAction("goToControlloTassiUsura");
    branchObjectControlloTassiUsura.setLeaf(true);
    branchObjectControlloTassiUsura.setId("idControlloTassiUsura");
    branchNodeControlloTassiUsura.setUserObject(branchObjectControlloTassiUsura);
    return branchNodeControlloTassiUsura;
  }
View Full Code Here

    return branchNodeTesoreriaFinanziamenti;
  }
 
  private MutableTreeNode creaNodeTesoreriaStatisticheGiornaliere() {
    DefaultMutableTreeNode branchNodeStatisticheGiornaliere = new DefaultMutableTreeNode();
    IceUserObjectWithStyle branchObjectStatisticheGiornaliere = new IceUserObjectWithStyle(
      branchNodeStatisticheGiornaliere);
    branchObjectStatisticheGiornaliere.setText(mbt.getMessage("TextStatisticheGiornaliereShort"));
    branchObjectStatisticheGiornaliere.setAction("goToTesoreriaStatisticheGiornaliere");
    branchObjectStatisticheGiornaliere.setLeaf(true);
    branchObjectStatisticheGiornaliere.setId("idStatisticheGiornaliereTesoreria");
    branchNodeStatisticheGiornaliere.setUserObject(branchObjectStatisticheGiornaliere);
    return branchNodeStatisticheGiornaliere;
  }
View Full Code Here

    return branchNodeStatisticheGiornaliere;
  }
 
  private MutableTreeNode creaNodeTesoreriaStatistichePeriodiche() {
    DefaultMutableTreeNode branchNodeStatistichePeriodiche = new DefaultMutableTreeNode();
    IceUserObjectWithStyle branchObjectStatistichePeriodiche = new IceUserObjectWithStyle(
      branchNodeStatistichePeriodiche);
    branchObjectStatistichePeriodiche.setText(mbt.getMessage("TextStatistichePeriodicheShort"));
    branchObjectStatistichePeriodiche.setAction("goToTesoreriaStatistichePeriodiche");
    branchObjectStatistichePeriodiche.setLeaf(true);
    branchObjectStatistichePeriodiche.setId("idStatistichePeriodicheTesoreria");
    branchNodeStatistichePeriodiche.setUserObject(branchObjectStatistichePeriodiche);
    return branchNodeStatistichePeriodiche;
  }
View Full Code Here

  public MenuGestioneSalTreeBean() {
    mb = new GestioneSalMessageBundle();
    commonImagesPath = configBean.getCommonImagesPath();
   
    rootTreeNode = new DefaultMutableTreeNode();
    IceUserObjectWithStyle rootObject = new IceUserObjectWithStyle(rootTreeNode);
    rootObject.setText(mb.getMessage("ProgramMenuGestioneSal"));
    rootObject.setExpanded(true);
    rootObject.setBranchContractedIcon(commonImagesPath + ICONA_GESTIONESAL_PNG);
    rootObject.setBranchExpandedIcon(commonImagesPath + ICONA_GESTIONESAL_PNG);
    rootObject.setLeafIcon(commonImagesPath + ICONA_GESTIONESAL_PNG);
    rootObject.setAction("startGestioneSal");
    rootTreeNode.setUserObject(rootObject);
   
    model = new DefaultTreeModel(rootTreeNode);
   
  }
View Full Code Here

TOP

Related Classes of it.pdor.webapp.common.component.tree.IceUserObjectWithStyle

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.