Package org.dspace.app.xmlui.wing.element

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


            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

        
          if (deleteConstraints != null && deleteConstraints.size() > 0)
          {
            submitDelete.setDisabled();
           
            Highlight hi = identity.addItem("eperson-delete-constraint","eperson-delete-constraint").addHighlight("error");
            hi.addContent(T_delete_constraint);
            hi.addContent(" ");
           
            for (String constraint : deleteConstraints)
            {
              int idx = deleteConstraints.indexOf(constraint);
              if (idx > 0 && idx == deleteConstraints.size() -1 )
              {
                hi.addContent(", ");
                hi.addContent(T_constraint_last_conjunction);
                hi.addContent(" ");
              }
              else if (idx > 0)
                hi.addContent(", ");
             
              if ("item".equals(constraint))
                hi.addContent(T_constraint_item);
              else if ("workflowitem".equals(constraint))
                hi.addContent(T_constraint_workflowitem);
              else if ("tasklistitem".equals(constraint))
                hi.addContent(T_constraint_tasklistitem);
              else
                hi.addContent(T_constraint_unknown);
             
            }
            hi.addContent(".");
          }
        }
       
       
        Item buttons = identity.addItem();
View Full Code Here

   
    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

   

    addFieldErrors(form, errors);
   
    form.addLabel(T_name);
    Highlight item =form.addItem().addHighlight("big");
   
    item.addContent(schemaName+" . ");
    Text element = item.addText("updateElement");
    item.addContent(" . ");
    Text qualifier = item.addText("updateQualifier");
   
   
    element.setSize(13);
    element.setValue(elementValue);
   
View Full Code Here

              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

                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

         
          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

                        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

                    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

TOP

Related Classes of org.dspace.app.xmlui.wing.element.Highlight

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.