Examples of Highlight


Examples of org.dspace.app.xmlui.wing.element.Highlight

              else if (collectionName.length() > MAX_COLLECTION_NAME)
                collectionName = collectionName.substring(0,MAX_COLLECTION_NAME-3) + "...";
             
              cell.addContent(collectionName+" ");
             
              Highlight highlight = cell.addHighlight("fade");
              highlight.addContent("[");
              highlight.addXref(contextPath+"/handle/"+collection.getHandle(), T_groups_collection_link);
              highlight.addContent("]");
            }
          }
         
         
          // Check if the group is allready a member or would create a cycle.
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Highlight

                else if (collectionOrCommunityName.length() > MAX_COLLECTION_OR_COMMUNITY_NAME)
                    collectionOrCommunityName = collectionOrCommunityName.substring(0,MAX_COLLECTION_OR_COMMUNITY_NAME-3) + "...";
             
                cell.addContent(collectionOrCommunityName + " ");
             
            Highlight highlight = cell.addHighlight("fade");

                highlight.addContent("[");
                highlight.addXref(contextPath+"/handle/"+collectionOrCommunity.getHandle(), T_collection_link);
            highlight.addContent("]");
          }
         
        }
       
        if (groups.length <= 0)
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Highlight

         
          row.addCell().addContent(description);
          row.addCell().addContent(format);
        }
       
        Highlight highlight = row.addCell().addHighlight("fade");
        highlight.addContent("[");
        highlight.addXref(viewURL,T_view_link);
        highlight.addContent("]");
      }
    }

    if (AuthorizeManager.authorizeActionBoolean(context, item, Constants.ADD))
    {
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Highlight

                        collectionName = collectionName.substring(0, MAX_COLLECTION_NAME - 3) + "...";
                    }
             
              cell.addContent(collectionName+" ");
             
              Highlight highlight = cell.addHighlight("fade");
              highlight.addContent("[");
              highlight.addXref(contextPath+"/handle/"+collection.getHandle(), T_groups_collection_link);
              highlight.addContent("]");
            }
          }
         
         
          // Check if the group is already a member or would create a cycle.
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Highlight

                    row.addCell().addContent(description);
                    row.addCell().addContent(format);
                }

                Highlight highlight = row.addCell().addHighlight("fade");
                highlight.addContent("[");
                highlight.addXref(viewURL, T_view_link);
                highlight.addContent("]");

                if (AuthorizeManager.authorizeActionBoolean(context, bundle, Constants.WRITE)) {
                    Cell cell = row.addCell("bitstream_order_" + bitstream.getID(), Cell.ROLE_DATA, "");
                    //Add the +1 to make it more human readable
                    cell.addHidden("order_" + bitstream.getID()).setValue(String.valueOf(bitstreamIndex + 1));
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Highlight

                            0, MAX_COLLECTION_OR_COMMUNITY_NAME - 3) + "...";
                }

                cell.addContent(collectionOrCommunityName + " ");

                Highlight highlight = cell.addHighlight("fade");

                highlight.addContent("[");
                highlight.addXref(contextPath + "/handle/"
                        + collectionOrCommunity.getHandle(), T_collection_link);
                highlight.addContent("]");
            }

        }

        if (groups.length <= 0)
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Highlight

                row.addCell().addXref(baseURL + "&submit_edit&policy_id=" + policy.getID(), String.valueOf(policy.getID()));
                row.addCell().addXref(baseURL + "&submit_edit&policy_id=" + policy.getID(), policy.getActionText());
                if (policyGroup != null) {
                    Cell groupCell = row.addCell();
                    groupCell.addContent(policyGroup.getName());
                    Highlight groupHigh = groupCell.addHighlight("fade");
                    groupHigh.addContent(" [");
                    groupHigh.addXref(baseURL + "&submit_edit_group&group_id=" + policyGroup.getID(), T_group_edit);
                    groupHigh.addContent("]");
                }
                else {
                    row.addCell().addContent("...");
                }
            }
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Highlight

            row.addCell().addXref(baseURL + "&submit_edit&policy_id=" + policy.getID() +
                "&object_id=" + objectID + "&object_type=" + objectType, policy.getActionText());
            if (policyGroup != null) {
              Cell groupCell = row.addCell(1,2);
              groupCell.addContent(policyGroup.getName());
              Highlight groupHigh = groupCell.addHighlight("fade");
              groupHigh.addContent(" [");
              groupHigh.addXref(baseURL + "&submit_edit_group&group_id=" + policyGroup.getID(), T_group_edit);
              groupHigh.addContent("]");
            }
            else {
                row.addCell(1,2).addContent("...");
            }
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Highlight

   
    List form = newField.addList("edit-schema-new-field-form",List.TYPE_FORM);
    addFieldErrors(form, errors);
   
    form.addLabel(T_name);
    Highlight item =form.addItem().addHighlight("big");
   
    item.addContent(schemaName+" . ");
    Text element = item.addText("newElement");
    item.addContent(" . ");
    Text qualifier = item.addText("newQualifier");
   
   
    element.setSize(15);
    element.setValue(elementValue);
   
View Full Code Here

Examples of org.richfaces.ui.component.Highlight

        throw new FacesException(e);
      } finally {
        in.close();
      }
    } else {
      Highlight highlighter;
      try {
        highlighter = new HighlightImpl(component.getHighlight());

      } catch (NoClassDefFoundError e) {
        renderErrorMessage(context, component, "HIGHLIGHT_LIBRARY_NOT_FOUND");
        highlighter = new DummyHighLight();
      }
      try {
        highlighter.highlight(component.getSrc(), inputStream, writer,
            encoding);
      } catch (IOException e) {
        throw new FacesException(e);
      } finally {
        inputStream.close();
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.