Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatible to Apache Cordova 3.3 for globalization package. #29

Merged
merged 1 commit into from Mar 31, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

This file was deleted.

@@ -0,0 +1,60 @@
/*
* Copyright 2014 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.googlecode.gwtphonegap.client.globalization;

/**
* @author vkiran
*/
public interface CurrencyPattern {

/**
* The currency pattern to format and parse currency values.
* The patterns follow Unicode Technical Standard #35. (String)
* @return
*/
public String getPattern();

/**
* The ISO 4217 currency code for the pattern. (String)
* @return
*/
public String getCode();

/**
*The decimal symbol to use for parsing and formatting. (String)
* @return
*/
public String getDecimal();

/**
*The grouping symbol to use for parsing and formatting. (String)
* @return
*/
public String getGrouping();

/**
*The rounding increment to use when parsing and formatting. (Number)
* @return
*/
public int getRounding();

/**
* The number of fractional digits to use when parsing and formatting currency. (Number)
* @return
*/
public double getFraction();

}
@@ -0,0 +1,64 @@
/*
* Copyright 2014 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.googlecode.gwtphonegap.client.globalization;

/**
* @author vkiran
*/
public interface DateFields {

/**
* The four digit year. (Number)
* @return
*/
public int getYear();

/**
* The month from (0-11). (Number)
* @return
*/
public int getMonth();

/**
* The day from (1-31). (Number)
* @return
*/
public int getDay() ;

/**
* The hour from (0-23). (Number)
* @return
*/
public int getHour();

/**
* The minute from (0-59). (Number)
* @return
*/
public int getMinute();

/**
* The second from (0-59). (Number)
* @return
*/
public int getSecond();

/**
* The milliseconds (from 0-999), not available on all platforms. (Number)
* @return
*/
public Long getMillisecond();
}
Expand Up @@ -16,5 +16,28 @@
package com.googlecode.gwtphonegap.client.globalization;

public interface DatePattern {
public String getPattern();
/**
* The date and time pattern to format and parse dates. The patterns follow Unicode Technical Standard #35. (String)
* @return
*/
public String getPattern();

/**
* The abbreviated name of the time zone on the client. (String)
* @return
*/
public String getTimeZone();

/**
* The current difference in seconds between the client's time zone and coordinated universal time. (Number)
* @return
*/
public int getUtc_offset();

/**
* The current daylight saving time offset in seconds between the client's non-daylight saving's time zone
* and the client's daylight saving's time zone. (Number)
* @return
*/
public int getDst_offset();
}

This file was deleted.

@@ -0,0 +1,25 @@
/*
* Copyright 2014 Daniel Kurka
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.googlecode.gwtphonegap.client.globalization;

/**
* @author vkiran
*/
public interface DayLightSavings {

public boolean getDst();

}