Пример #1
0
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
Пример #2
0
 public String getErrorDomain() {
   if (has(Keys.ErrorDomain())) {
     NSString val = (NSString) get(Keys.ErrorDomain());
     return val.toString();
   }
   return null;
 }
Пример #3
0
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UIFont getFont() {
   if (has(Keys.Font())) {
     UIFont val = (UIFont) get(Keys.Font());
     return val;
   }
   return null;
 }
Пример #4
0
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UIColor getTextColor() {
   if (has(Keys.Color())) {
     UIColor val = (UIColor) get(Keys.Color());
     return val;
   }
   return null;
 }
Пример #5
0
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UIColor getBackgroundColor() {
   if (has(Keys.BackgroundColor())) {
     UIColor val = (UIColor) get(Keys.BackgroundColor());
     return val;
   }
   return null;
 }
Пример #6
0
 public NSNetServiceErrorUserInfo setErrorDomain(String errorDomain) {
   set(Keys.ErrorDomain(), new NSString(errorDomain));
   return this;
 }
Пример #7
0
 public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) {
   set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value()));
   return this;
 }
Пример #8
0
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UITextInputTextStyle setFont(UIFont font) {
   set(Keys.Font(), font);
   return this;
 }
Пример #9
0
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UITextInputTextStyle setTextColor(UIColor textColor) {
   set(Keys.Color(), textColor);
   return this;
 }
Пример #10
0
 /**
  * @since Available in iOS 3.2 and later.
  * @deprecated Deprecated in iOS 8.0.
  */
 @Deprecated
 public UITextInputTextStyle setBackgroundColor(UIColor backgroundColor) {
   set(Keys.BackgroundColor(), backgroundColor);
   return this;
 }