Java Code Examples for net.sf.mpxj.Task#setHyperlinkAddress()

The following examples show how to use net.sf.mpxj.Task#setHyperlinkAddress() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MPP9Reader.java    From mpxj with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * This method is used to extract the task hyperlink attributes
 * from a block of data and call the appropriate modifier methods
 * to configure the specified task object.
 *
 * @param task task instance
 * @param data hyperlink data block
 */
private void processHyperlinkData(Task task, byte[] data)
{
   if (data != null)
   {
      int offset = 12;
      String hyperlink;
      String address;
      String subaddress;

      offset += 12;
      hyperlink = MPPUtility.getUnicodeString(data, offset);
      offset += ((hyperlink.length() + 1) * 2);

      offset += 12;
      address = MPPUtility.getUnicodeString(data, offset);
      offset += ((address.length() + 1) * 2);

      offset += 12;
      subaddress = MPPUtility.getUnicodeString(data, offset);

      task.setHyperlink(hyperlink);
      task.setHyperlinkAddress(address);
      task.setHyperlinkSubAddress(subaddress);
   }
}
 
Example 2
Source File: MPP8Reader.java    From mpxj with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * This method is used to extract the task hyperlink attributes
 * from a block of data and call the appropriate modifier methods
 * to configure the specified task object.
 *
 * @param task task instance
 * @param data hyperlink data block
 */
private void processHyperlinkData(Task task, byte[] data)
{
   if (data != null)
   {
      int offset = 12;
      String hyperlink;
      String address;
      String subaddress;

      offset += 12;
      hyperlink = MPPUtility.getUnicodeString(data, offset);
      offset += ((hyperlink.length() + 1) * 2);

      offset += 12;
      address = MPPUtility.getUnicodeString(data, offset);
      offset += ((address.length() + 1) * 2);

      offset += 12;
      subaddress = MPPUtility.getUnicodeString(data, offset);

      task.setHyperlink(hyperlink);
      task.setHyperlinkAddress(address);
      task.setHyperlinkSubAddress(subaddress);
   }
}
 
Example 3
Source File: MPP14Reader.java    From mpxj with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * This method is used to extract the task hyperlink attributes
 * from a block of data and call the appropriate modifier methods
 * to configure the specified task object.
 *
 * @param task task instance
 * @param data hyperlink data block
 */
private void processHyperlinkData(Task task, byte[] data)
{
   if (data != null)
   {
      int offset = 12;
      String hyperlink;
      String address;
      String subaddress;

      offset += 12;
      hyperlink = MPPUtility.getUnicodeString(data, offset);
      offset += ((hyperlink.length() + 1) * 2);

      offset += 12;
      address = MPPUtility.getUnicodeString(data, offset);
      offset += ((address.length() + 1) * 2);

      offset += 12;
      subaddress = MPPUtility.getUnicodeString(data, offset);

      task.setHyperlink(hyperlink);
      task.setHyperlinkAddress(address);
      task.setHyperlinkSubAddress(subaddress);
   }
}
 
Example 4
Source File: MPP12Reader.java    From mpxj with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * This method is used to extract the task hyperlink attributes
 * from a block of data and call the appropriate modifier methods
 * to configure the specified task object.
 *
 * @param task task instance
 * @param data hyperlink data block
 */
private void processHyperlinkData(Task task, byte[] data)
{
   if (data != null)
   {
      int offset = 12;
      String hyperlink;
      String address;
      String subaddress;

      offset += 12;
      hyperlink = MPPUtility.getUnicodeString(data, offset);
      offset += ((hyperlink.length() + 1) * 2);

      offset += 12;
      address = MPPUtility.getUnicodeString(data, offset);
      offset += ((address.length() + 1) * 2);

      offset += 12;
      subaddress = MPPUtility.getUnicodeString(data, offset);

      task.setHyperlink(hyperlink);
      task.setHyperlinkAddress(address);
      task.setHyperlinkSubAddress(subaddress);
   }
}