Package kiyut.sketsa.registration
Class RegistrationManager
- java.lang.Object
-
- kiyut.sketsa.registration.RegistrationManager
-
public final class RegistrationManager extends Object
RegistrationManager- Author:
- KIYUT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckRegistration()intgetElapsedChecked()intgetElapsedDays()longgetExpiredMillis()static RegistrationManagergetInstance()Returns the single instance, creating one if it's the first time this method is called.voidpaintUnregisteredImage(Component component, Graphics g)booleanregister(String name, String serialNo)Return true if registration success, otherwise falsevoidshowBetaNotice()voidshowReminder()voidunRegister()
-
-
-
Method Detail
-
getInstance
public static RegistrationManager getInstance()
Returns the single instance, creating one if it's the first time this method is called.- Returns:
- RegistrationManager The single instance.
-
register
public boolean register(String name, String serialNo)
Return true if registration success, otherwise false- Parameters:
name- the nameserialNo- the serial number- Returns:
- true if registration success, otherwise false
-
unRegister
public void unRegister()
-
checkRegistration
public boolean checkRegistration()
-
showReminder
public void showReminder()
-
showBetaNotice
public void showBetaNotice()
-
getElapsedDays
public int getElapsedDays()
-
getElapsedChecked
public int getElapsedChecked()
-
getExpiredMillis
public long getExpiredMillis()
-
-