Monday, March 20, 2006

Tomcat 5.5 admin package.

Tomcat 5.5 admin package.

Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it.

http://apache.tradebit.com/pub/tomcat/tomcat-5/v5.5.16/bin/apache-tomcat-5.5.16-admin.zip

Tuesday, March 14, 2006

Implementing double click in flex

Application to demonstrate a possible implementation ' double click ' in Flex v 1.5


DoubleClickDemo.mxml

 


<?xml version="1.0" encoding="utf-8"?>

<!--

/////////////////////////////////////////////////////////////////////////////////////////

// Application to demonstrate a possible implementation ' double click '
in Flex v 1.5 

// Author   : Vishwajit Girdhari               

// Date   : 14-Mar-2006

// Flex Blog  : http://flexiness.blogspot.com

// Blog  : http://vishwajit.blogspot.com

// Website  : www.vishwajit.com

// email   : vishwajit @ gmail.com

/////////////////////////////////////////////////////////////////////////////////////////

-->

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">

  <mx:Script source="DoubleClickDemo_script.as" >

  </mx:Script>

  <mx:Panel>

    <mx:Button   id ="btnTest" label="Test single /
double click"  click="button_clicked()"  ></mx:Button>

  </mx:Panel>

</mx:Application>



DoubleClickDemo_script.as

/////////////////////////////////////////////////////////////////////////////////////////
// Application to demonstrate a possible implementation ' double click ' in Flex v 1.5
// Author : Vishwajit Girdhari
// Date : 14-Mar-2006
// Flex Blog : http://flexiness.blogspot.com
// Website : www.vishwajit.com
// email : vishwajit @ gmail.com
/////////////////////////////////////////////////////////////////////////////////////////

//Define the time duration to identify a double click.
var duration = 300;
var timer ;

//Called when the mouse button is clicked
function button_clicked()
{
// double click happened
if(timer != null)
{
// Call a specialised event for double click here.
mx.controls.Alert.show("Double click!");


//clean up
clearInterval(timer);
timer = null;
}
else
{
//start timer on first click
// setInterval obj,callback function,time interval
timer = setInterval(this,"click",duration);
}
}


// handles single clicks
function click(){

// Call a specialised event for single click here.
mx.controls.Alert.show("Single click!");

//clean up
clearInterval(timer);
timer = null;
}

Windows like behaviour for a panel in flex

I wanted to create a panel that could be be minimized, maximized, moved like a typical 'window'.This article helped me achiving this.
http://www.coenraets.com/viewarticle.jsp?articleId=89

Saturday, March 11, 2006

Flexiness

Whats is flexiness ?

I don't know ............simple.

Got chance to work on Macromedia (now Adobe) Flex and that had impact on the way I have been looking at UI. ASP.NET started feeling like pain. Regular websites started looking to thin and dull. Started to feel the power of RIA and the possibilties limited only by your imagination.

I got hooked. My UI changed as well ....... got a few tshirts....... Osho chappals...... whatever appealed to designer in me. Not limited by external voices.......

still looking for more stuff ......

This my flexiness ............to be able to adapt to anything (presently ...technology) under the sun.

-Vishwajit