Examples of toDisplayString()


Examples of ch.sahits.game.openpatrician.model.Date.todisplayString()

   * Representation that can be displayed
   * @return
   */
  public String toDisplayString(){
    Date date = Date.getInstance(0); // TODO ugly
    return date.todisplayString(dayInMonth, month, year);
  }
 
  public boolean isSameDate(DateObject date){
    if (getDayInMonth()!=date.getDayInMonth() ||
      getMonth()!=date.getMonth() ||
View Full Code Here

Examples of com.cburch.logisim.data.Value.toDisplayString()

      int radix = item.getRadix();
      int offs = rowCount - log.size();
      y = y0 + Math.max(offs, firstRow) * cellHeight;
      for (int row = Math.max(offs, firstRow); row < lastRow; row++) {
        Value val = log.get(row - offs);
        String label = val.toDisplayString(radix);
        int width = bodyMetric.stringWidth(label);
        g.drawString(label, x + (cellWidth - width) / 2,
            y + bodyMetric.getAscent());
        y += cellHeight;
      }
View Full Code Here

Examples of com.cburch.logisim.data.Value.toDisplayString()

            int radix = item.getRadix();
            int offs = rowCount - log.size();
            y = y0 + Math.max(offs, firstRow) * cellHeight;
            for (int row = Math.max(offs, firstRow); row < lastRow; row++) {
                Value val = log.get(row - offs);
                String label = val.toDisplayString(radix);
                int width = bodyMetric.stringWidth(label);
                g.drawString(label, x + (cellWidth - width) / 2,
                        y + bodyMetric.getAscent());
                y += cellHeight;
            }
View Full Code Here

Examples of jcifs.smb.SID.toDisplayString()

   * @param sidType
   */
  private SID createSID(String domainName, String displayString, int sidType) {
    SID sid = createMock(SID.class);
    expect(sid.getDomainName()).andStubReturn(domainName);
    expect(sid.toDisplayString()).andStubReturn(displayString);
    expect(sid.getType()).andStubReturn(sidType);
    replay(sid);
    return sid;
  }

View Full Code Here

Examples of jcifs.smb.SID.toDisplayString()

   */
  private ACE createACE(String userOrGroupName, boolean isUser, boolean isDeny) {
    //TODO : Add enums instead of booleans to avoid comments in the calls.
    ACE ace = createMock(ACE.class);
    SID sid = createMock(SID.class);
    expect(sid.toDisplayString()).andReturn(userOrGroupName);
    expectLastCall().anyTimes();
    if (isUser) {
      expect(sid.getType()).andReturn(SID.SID_TYPE_USER);
    } else {
        expect(sid.getType()).andReturn(SID.SID_TYPE_DOM_GRP);
View Full Code Here

Examples of jcifs.smb.SID.toDisplayString()

   */
  protected void addAceToSet(Set<Principal> users, Set<Principal> groups,
      ACE finalAce) {
    SID sid = finalAce.getSID();
    int sidType = sid.getType();
    String aclEntry = sid.toDisplayString();
    int ix = aclEntry.indexOf('\\');
    if (ix > 0) {
      String domain = aclEntry.substring(0, ix);
      String userOrGroup = aclEntry.substring(ix + 1);
      if (sidType == SID.SID_TYPE_USER) {
View Full Code Here

Examples of jcifs.smb.SID.toDisplayString()

        LOGGER.log(Level.FINEST, "Filtering BUILTIN ACE {0} for file {1}",
                   new Object[] { ace, file });
        return;
      }
    }
    String aclEntry = sid.toDisplayString();
    if (sid.toString().equals(aclEntry)) {
      LOGGER.log(Level.FINEST, "Filtering unresolved ACE {0} for file {1}",
                 new Object[] { ace, file });
      return;
    }
View Full Code Here

Examples of juzu.impl.compiler.Message.toDisplayString()

        if (source != null) {
          msg = new Message(MetaModelPluginImpl.COMPILATION_ERROR, errorName, source.getName(), error.getLine(), text);
        } else {
          msg = new Message(MetaModelPluginImpl.GENERAL_PROBLEM, errorName, text);
        }
        MetaModelPluginImpl.log.info(msg.toDisplayString());
        messages.add(msg);
      }
      throw new ProcessingException(messages);
    }
  }
View Full Code Here

Examples of juzu.impl.compiler.Message.toDisplayString()

                text,
                error.src,
                error.line,
                error.column + 1,
                sb);
              log.info(msg.toDisplayString());
              messages.add(msg);
            }
            throw new ProcessingException(pkgElt, annotationMirror, messages);
          }
        }
View Full Code Here

Examples of org.apache.sanselan.common.RationalNumber.toDisplayString()

                        + gpsLatitudeSeconds.toDisplayString() + " seconds "
                        + gpsLatitudeRef);
                System.out.println("    " + "GPS Longitude: "
                        + gpsLongitudeDegrees.toDisplayString() + " degrees, "
                        + gpsLongitudeMinutes.toDisplayString() + " minutes, "
                        + gpsLongitudeSeconds.toDisplayString() + " seconds "
                        + gpsLongitudeRef);

            }

            System.out.println();
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.