Returned 5 Results for "class" Ordered By Relevance
public enum SecpayErrorType {
authorised ("Transaction authorised by bank. auth_code available as bank reference"),
notAuthorised ("Transaction not authorised. Failure message text available to merchant"),
commsProblem ("Communication problem. Trying again later may well work"),
fraud ("The SECPay system has detected a fraud condition and rejected the transaction. The message field will contain more details."),
amountInvalid ("Pre-bank checks. Amount not supplied or invalid"),
insufficientParams ("Pre-bank checks. Not all mandatory parameters supplied"),
paymentRepresented ("Pre-bank checks. Same payment presented twice"),
startInvalid ("Pre-bank checks. Start date invalid"),
expireInvalid ("Pre-bank checks. Expiry date invalid"),
issueInvalid ("Pre-bank checks. Issue number invalid"),
LUHNFailed ("Pre-bank checks. Card number fails LUHN check"),
cardTypeInvalid ("Pre-bank checks. Card type invalid - i.e. does not match card number prefix"),
nameInvalid ("Pre-bank checks. Customer name not supplied"),
merchantInvalid ("Pre-bank checks. Merchant does not exist or not registered yet"),
merchantAccountCardTypeInvalid ("Pre-bank checks. Merchant account for card type does not exist"),
merchardAccountCurrencyTypeInvalid ("Pre-bank checks. Merchant account for this currency does not exist"),
CVV2Invalid ("Pre-bank checks. CVV2 security code mandatory and not supplied / invalid"),
timeOut ("Pre-bank checks. Transaction timed out awaiting a virtual circuit. Merchant may not have enough virtual circuits for the volume of business."),
noMD5 ("Pre-bank checks. No MD5 hash / token key set up against account");
private final String description; // constructor
SecpayErrorType(String description) {
this.description = description;
}
public String getDescription(){
Runnable r = new Runnable() {
public void run(){
}
};
Runnable s = new MyRunnable();
return description;
}
private class MyRunnable implements Runnable {
public void run(){
}
}
}
Resizable Vista style buttons with a gradient in XHTML/CSS
As I had to spend an entire afternoon trying to get these to work I might as well post them
To get your lovely Vista Style buttons just screen shot Vista or make a rectangle with 2 gradients that meet.. then add a boarder and blend the corner pixels onto whatever backdrop you want to put them on.
.buttonLeft {
background-image: url(button-right.gif);
background-repeat: no-repeat;
background-position: top right;
display:block;
float:left;
/*external border spacing*/
margin:4px;
}
.buttonRight {
background-image: url(button-left.gif);
background-repeat: no-repeat;
background-position: top left;
display:block;
}
.buttonCentre{
/*line-height pushes the display block to the full height of the containing image*/
line-height:26px;
/*Inner boarders*/
margin-left:4px;
margin-right:4px;
background-image: url(button-centre.gif);
background-repeat: repeat-x ;
background-position: top left;
display:block;
}
span.buttonCentre:hover{
background: url(button-centre-hover.gif) ;
}
span.buttonLeft:hover {
background-image: url(button-right-hover.gif);
}
span.buttonRight:hover {
background-image: url(button-left-hover.gif);
}
And then all you have to do is make a few containing spans and you have your buttons
<span class="buttonLeft">
<span class="buttonRight">
<span class="buttonCentre">
buttonText
</span>
</span>
</span>
To conclude - these buttons are infinitely horizontally resizable and do display properly - however the hover does not work perfectly, if you hit the outer nested elements they will hover without making the internal elements hover..
PHP ArrayList Class - Having spent the last year working in Java, working with PHP now makes me cry and weep in anguish.. for many reasons, one of the main ones being its' complete inability to store more than 1 thing in anything other than an array
I have attempted to create a class that handles data in a marginally more friendly manner allowing you to interate through etc.. it's still a bit BETA but it speeds up my development times.. so here it is
With it you can while($arrayList->hasNext()){} and do all kinds of other crazy things that will bring endless listing joy to your life - mail me if you have any improvement suggestions
Eclipse never seems to bother creating the deployment file for tomcat so here is a template web.xml document so i can find it easily