Précédent   Forum des professionnels en informatique > Bases de données > Oracle > Outils > Forms
Forms Forum d'entraide sur Oracle Forms
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 20/12/2007, 09h57   #1
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
Par défaut Utilisation Javabean dans forms10g

Bonjour,

Je suis nouveau ici et je vous salue dont tous.

J'ai une question relative à l'utilisation des javabean dans forms10g.

J'ai récupéré une .jar qui est un calendrier que j'aimerai utiliser dans mes applis(il est en piece jointe)
j'aimerai utiliser la methode getDay() de la classe JDayChooser pour récupérer le jour sélectionné sur le calendrier, mais mon bean est enregistré comme : com.toedter.calendar.Jcalendar

je pense utiliser comme instruction : FBEAN.INVOKE_NUM(.......) pour pouvoir récupérer le jour dans une variable, mais je ne parvien pas invoquer la methode getDay() car elle ne fai pas partie de la classe JCalendar mais de la classe JDayChooser.
Ces classes font parti du meme package....

Comment puis je procéder?

Merci d'avance...
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 11h41   #2
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
JCalendar.java contient une méthode publique qui retourne un dayChooser
Code :
1
2
3
    public JDayChooser getDayChooser() {
        RETURN dayChooser;
    }
et JDayChooser.java contient une méthode publique qui retourne le jour sélectionné
Code :
1
2
3
    public int getDay() {
        RETURN day;
    }
l'un dans l'autre, cela devrait suffire.
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 11h51   #3
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
Donc comment je l'invoque dans mon FBEAN.INVOKE(......) ????

getDayChooser.getDay ??????
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 11h58   #4
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
J'imagine qu'il serait plus simple d'écrire un petit wrapper qui intègrerait une instance de ce Bean et proposerait des méthodes publiques pour lire/écrire les propriétés (get/set).
Mais vous pouvez tout de même essayer votre solution, cela ne mange pas de pain...
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 12h04   #5
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
et commen puis je développer ce wrapper???? je ne suis pas spécialiste.....
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 12h12   #6
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Dans ce cas, le plus simple serait d'abord de tester getDayChooser.getDay dans la fonction FBean.Invoke().
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 13h45   #7
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
cela ne donne rien. La méthode n'est meme pas invoquer dans la console java...
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 13h56   #8
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Avez-vous préalablement enregistré le Bean avec FBean.Register_Bean() ?
et placé le Bean en mode debug:
Code :
FBEAN.SET_LOGGING_MODE('MyBeanArea',1,FBEAN.LOG_ALL);
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h08   #9
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
oui tout a fait.....


mon code pour l'enregistrement du bean :

fbean.register_bean('BEAN_AREA4',1,'com.toedter.calendar.JDaychooser');



mon code pour l'apel de la methode :

declare
test integer;
begin
FBEAN.SET_LOGGING_MODE('BEAN_AREA4',1,FBEAN.LOG_ALL);
test := FBEAN.INVOKE_num('BEAN_AREA4',1,'getDaychooser.getDay');
message('test = '||test);
message('*');
end;
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h10   #10
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
et le contenu de la console Java ?
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h10   #11
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
pardon, pour la declaration du bean, c'est :

fbean.register_bean('BEAN_AREA4',1,'com.toedter.calendar.JCalendar');
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h11   #12
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Et puis la classe est JDayChooser et non JDaychooser...
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h19   #13
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
j'utilise la classe JCalendar et non JDayChooser, je me suis trompé....
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h30   #14
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Il n'empêche que j'aimerais bien voir le contenu de la console Java......
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h38   #15
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
Voila ce que j ai dans la console Java :



La version Forms Applet est : 10.1.2.0


*** VBean Setting beanName to com.toedter.calendar.JCalendar
*** com.toedter.calendar.JCalendar Registering properties
*** com.toedter.calendar.JCalendar int pWidth
*** com.toedter.calendar.JCalendar int pDebugGraphicsOptions
*** com.toedter.calendar.JCalendar int pHeight
*** com.toedter.calendar.JCalendar boolean pOpaque
*** com.toedter.calendar.JCalendar javax.swing.InputVerifier pInputVerifier
*** com.toedter.calendar.JCalendar Null type for property pInputMap
*** com.toedter.calendar.JCalendar boolean pOptimizedDrawingEnabled
*** com.toedter.calendar.JCalendar int pComponentCount
*** com.toedter.calendar.JCalendar boolean pRequestFocusEnabled
*** com.toedter.calendar.JCalendar boolean pEnabled
*** com.toedter.calendar.JCalendar boolean pFocusCycleRoot
*** com.toedter.calendar.JCalendar java.awt.Dimension pPreferredSize
*** com.toedter.calendar.JCalendar java.awt.Component pNextFocusableComponent
*** com.toedter.calendar.JCalendar javax.swing.border.Border pBorder
*** com.toedter.calendar.JCalendar java.lang.String pName
*** com.toedter.calendar.JCalendar boolean pPaintingTile
*** com.toedter.calendar.JCalendar java.awt.Rectangle pVisibleRect
*** com.toedter.calendar.JCalendar java.awt.Dimension pMinimumSize
*** com.toedter.calendar.JCalendar javax.swing.JRootPane pRootPane
*** com.toedter.calendar.JCalendar javax.accessibility.AccessibleContext pAccessibleContext
*** com.toedter.calendar.JCalendar java.awt.Container pTopLevelAncestor
*** com.toedter.calendar.JCalendar java.util.Locale pLocale
*** com.toedter.calendar.JCalendar boolean pDoubleBuffered
*** com.toedter.calendar.JCalendar boolean pVisible
*** com.toedter.calendar.JCalendar [java.awt.Component] pComponents
*** com.toedter.calendar.JCalendar float pAlignmentY
*** com.toedter.calendar.JCalendar float pAlignmentX
*** com.toedter.calendar.JCalendar java.awt.Insets pInsets
*** com.toedter.calendar.JCalendar boolean pAutoscrolls
*** com.toedter.calendar.JCalendar [javax.swing.KeyStroke] pRegisteredKeyStrokes
*** com.toedter.calendar.JCalendar javax.swing.ActionMap pActionMap
*** com.toedter.calendar.JCalendar java.awt.LayoutManager pLayout
*** com.toedter.calendar.JCalendar java.lang.String pToolTipText
*** com.toedter.calendar.JCalendar java.lang.String pUIClassID
*** com.toedter.calendar.JCalendar java.awt.Color pForeground
*** com.toedter.calendar.JCalendar boolean pMaximumSizeSet
*** com.toedter.calendar.JCalendar int pY
*** com.toedter.calendar.JCalendar java.awt.Color pBackground
*** com.toedter.calendar.JCalendar int pX
*** com.toedter.calendar.JCalendar boolean pValidateRoot
*** com.toedter.calendar.JCalendar java.awt.Graphics pGraphics
*** com.toedter.calendar.JCalendar boolean pFocusTraversable
*** com.toedter.calendar.JCalendar java.awt.Font pFont
*** com.toedter.calendar.JCalendar Null type for property pComponent
*** com.toedter.calendar.JCalendar boolean pMinimumSizeSet
*** com.toedter.calendar.JCalendar boolean pPreferredSizeSet
*** com.toedter.calendar.JCalendar boolean pManagingFocus
*** com.toedter.calendar.JCalendar java.awt.Dimension pMaximumSize
*** com.toedter.calendar.JCalendar boolean pVerifyInputWhenFocusTarget
*** com.toedter.calendar.JCalendar Registering methods
*** com.toedter.calendar.JCalendar void mFirePropertyChange(
*** com.toedter.calendar.JCalendar java.lang.String mFirePropertyChange$1,
*** com.toedter.calendar.JCalendar short mFirePropertyChange$2,
*** com.toedter.calendar.JCalendar short mFirePropertyChange$3)
*** com.toedter.calendar.JCalendar void mUnregisterKeyboardAction(
*** com.toedter.calendar.JCalendar javax.swing.KeyStroke mUnregisterKeyboardAction$1)
*** com.toedter.calendar.JCalendar java.awt.Component mGetComponentAt(
*** com.toedter.calendar.JCalendar java.awt.Point mGetComponentAt$1)
*** com.toedter.calendar.JCalendar java.awt.Container mGetTopLevelAncestor()
*** com.toedter.calendar.JCalendar void mGrabFocus()
*** com.toedter.calendar.JCalendar int mGetDebugGraphicsOptions()
*** com.toedter.calendar.JCalendar javax.swing.InputMap mGetInputMap()
*** com.toedter.calendar.JCalendar void mSetDoubleBuffered(
*** com.toedter.calendar.JCalendar boolean mSetDoubleBuffered$1)
*** com.toedter.calendar.JCalendar java.awt.Dimension mPreferredSize()
*** com.toedter.calendar.JCalendar void mEnable()
*** com.toedter.calendar.JCalendar boolean mIsMinimumSizeSet()
*** com.toedter.calendar.JCalendar void mRemoveAncestorListener(
*** com.toedter.calendar.JCalendar javax.swing.event.AncestorListener mRemoveAncestorListener$1)
*** com.toedter.calendar.JCalendar int mCountComponents()
*** com.toedter.calendar.JCalendar java.lang.String mGetUIClassID()
*** com.toedter.calendar.JCalendar float mGetAlignmentY()
*** com.toedter.calendar.JCalendar void mValidate()
*** com.toedter.calendar.JCalendar com.toedter.calendar.JDayChooser mGetDayChooser()
*** com.toedter.calendar.JCalendar float mGetAlignmentX()
*** com.toedter.calendar.JCalendar void mPrintComponents(
*** com.toedter.calendar.JCalendar java.awt.Graphics mPrintComponents$1)
*** com.toedter.calendar.JCalendar void mRemoveAll()
*** com.toedter.calendar.JCalendar void mFirePropertyChange_0(
*** com.toedter.calendar.JCalendar java.lang.String mFirePropertyChange_0$1,
*** com.toedter.calendar.JCalendar int mFirePropertyChange_0$2,
*** com.toedter.calendar.JCalendar int mFirePropertyChange_0$3)
*** com.toedter.calendar.JCalendar void mRemoveNotify()
*** com.toedter.calendar.JCalendar void mPrintAll(
*** com.toedter.calendar.JCalendar java.awt.Graphics mPrintAll$1)
*** com.toedter.calendar.JCalendar java.awt.Dimension mGetMinimumSize()
*** com.toedter.calendar.JCalendar boolean mIsManagingFocus()
*** com.toedter.calendar.JCalendar void mRemove(
*** com.toedter.calendar.JCalendar java.awt.Component mRemove$1)
*** com.toedter.calendar.JCalendar boolean mIsPaintingTile()
*** com.toedter.calendar.JCalendar void mUpdate(
*** com.toedter.calendar.JCalendar java.awt.Graphics mUpdate$1)
*** com.toedter.calendar.JCalendar void mAddAncestorListener(
*** com.toedter.calendar.JCalendar javax.swing.event.AncestorListener mAddAncestorListener$1)
*** com.toedter.calendar.JCalendar void mSetFont(
*** com.toedter.calendar.JCalendar java.awt.Font mSetFont$1)
*** com.toedter.calendar.JCalendar void mRequestFocus()
*** com.toedter.calendar.JCalendar void mRemoveContainerListener(
*** com.toedter.calendar.JCalendar java.awt.event.ContainerListener mRemoveContainerListener$1)
*** com.toedter.calendar.JCalendar javax.swing.JToolTip mCreateToolTip()
*** com.toedter.calendar.JCalendar void mRepaint(
*** com.toedter.calendar.JCalendar long mRepaint$1,
*** com.toedter.calendar.JCalendar int mRepaint$2,
*** com.toedter.calendar.JCalendar int mRepaint$3,
*** com.toedter.calendar.JCalendar int mRepaint$4,
*** com.toedter.calendar.JCalendar int mRepaint$5)
*** com.toedter.calendar.JCalendar void mSetBorder(
*** com.toedter.calendar.JCalendar javax.swing.border.Border mSetBorder$1)
*** com.toedter.calendar.JCalendar [java.util.EventListener] mGetListeners(
*** com.toedter.calendar.JCalendar java.lang.Class mGetListeners$1)
*** com.toedter.calendar.JCalendar [java.awt.Component] mGetComponents()
*** com.toedter.calendar.JCalendar void mAdd(
*** com.toedter.calendar.JCalendar java.awt.Component mAdd$1,
*** com.toedter.calendar.JCalendar java.lang.Object mAdd$2)
*** com.toedter.calendar.JCalendar void mComputeVisibleRect(
*** com.toedter.calendar.JCalendar java.awt.Rectangle mComputeVisibleRect$1)
*** com.toedter.calendar.JCalendar void mFirePropertyChange_1(
*** com.toedter.calendar.JCalendar java.lang.String mFirePropertyChange_1$1,
*** com.toedter.calendar.JCalendar byte mFirePropertyChange_1$2,
*** com.toedter.calendar.JCalendar byte mFirePropertyChange_1$3)
*** com.toedter.calendar.JCalendar void mAddPropertyChangeListener(
*** com.toedter.calendar.JCalendar java.lang.String mAddPropertyChangeListener$1,
*** com.toedter.calendar.JCalendar java.beans.PropertyChangeListener mAddPropertyChangeListener$2)
*** com.toedter.calendar.JCalendar int mGetY()
*** com.toedter.calendar.JCalendar int mGetX()
*** com.toedter.calendar.JCalendar java.awt.Dimension mGetPreferredSize()
*** com.toedter.calendar.JCalendar int mGetWidth()
*** com.toedter.calendar.JCalendar void mSetBackground(
*** com.toedter.calendar.JCalendar java.awt.Color mSetBackground$1)
*** com.toedter.calendar.JCalendar boolean mContains(
*** com.toedter.calendar.JCalendar int mContains$1,
*** com.toedter.calendar.JCalendar int mContains$2)
*** com.toedter.calendar.JCalendar boolean mGetVerifyInputWhenFocusTarget()
*** com.toedter.calendar.JCalendar java.awt.Component mAdd_0(
*** com.toedter.calendar.JCalendar java.lang.String mAdd_0$1,
*** com.toedter.calendar.JCalendar java.awt.Component mAdd_0$2)
*** com.toedter.calendar.JCalendar void mPropertyChange(
*** com.toedter.calendar.JCalendar java.beans.PropertyChangeEvent mPropertyChange$1)
*** com.toedter.calendar.JCalendar javax.swing.border.Border mGetBorder()
*** com.toedter.calendar.JCalendar void mList(
*** com.toedter.calendar.JCalendar java.io.PrintWriter mList$1,
*** com.toedter.calendar.JCalendar int mList$2)
*** com.toedter.calendar.JCalendar boolean mRequestDefaultFocus()
*** com.toedter.calendar.JCalendar void mSetMinimumSize(
*** com.toedter.calendar.JCalendar java.awt.Dimension mSetMinimumSize$1)
*** com.toedter.calendar.JCalendar boolean mIsDoubleBuffered()
*** com.toedter.calendar.JCalendar java.awt.Component mGetNextFocusableComponent()
*** com.toedter.calendar.JCalendar java.awt.Point mGetToolTipLocation(
*** com.toedter.calendar.JCalendar java.awt.event.MouseEvent mGetToolTipLocation$1)
*** com.toedter.calendar.JCalendar void mRegisterKeyboardAction(
*** com.toedter.calendar.JCalendar java.awt.event.ActionListener mRegisterKeyboardAction$1,
*** com.toedter.calendar.JCalendar javax.swing.KeyStroke mRegisterKeyboardAction$2,
*** com.toedter.calendar.JCalendar int mRegisterKeyboardAction$3)
*** com.toedter.calendar.JCalendar void mSetLayout(
*** com.toedter.calendar.JCalendar java.awt.LayoutManager mSetLayout$1)
*** com.toedter.calendar.JCalendar void mAddNotify()
*** com.toedter.calendar.JCalendar [javax.swing.KeyStroke] mGetRegisteredKeyStrokes()
*** com.toedter.calendar.JCalendar void mAdd_1(
*** com.toedter.calendar.JCalendar java.awt.Component mAdd_1$1,
*** com.toedter.calendar.JCalendar java.lang.Object mAdd_1$2,
*** com.toedter.calendar.JCalendar int mAdd_1$3)
*** com.toedter.calendar.JCalendar void mInvalidate()
*** com.toedter.calendar.JCalendar java.awt.Rectangle mGetVisibleRect()
*** com.toedter.calendar.JCalendar boolean mIsRequestFocusEnabled()
*** com.toedter.calendar.JCalendar void mLayout()
*** com.toedter.calendar.JCalendar void mRevalidate()
*** com.toedter.calendar.JCalendar java.awt.Dimension mGetSize(
*** com.toedter.calendar.JCalendar java.awt.Dimension mGetSize$1)
*** com.toedter.calendar.JCalendar void mSetPreferredSize(
*** com.toedter.calendar.JCalendar java.awt.Dimension mSetPreferredSize$1)
*** com.toedter.calendar.JCalendar void mRegisterKeyboardAction_0(
*** com.toedter.calendar.JCalendar java.awt.event.ActionListener mRegisterKeyboardAction_0$1,
*** com.toedter.calendar.JCalendar java.lang.String mRegisterKeyboardAction_0$2,
*** com.toedter.calendar.JCalendar javax.swing.KeyStroke mRegisterKeyboardAction_0$3,
*** com.toedter.calendar.JCalendar int mRegisterKeyboardAction_0$4)
*** com.toedter.calendar.JCalendar javax.swing.InputVerifier mGetInputVerifier()
*** com.toedter.calendar.JCalendar javax.accessibility.AccessibleContext mGetAccessibleContext()
*** com.toedter.calendar.JCalendar void mMain(
*** com.toedter.calendar.JCalendar [java.lang.String] mMain$1)
*** com.toedter.calendar.JCalendar void mPrint(
*** com.toedter.calendar.JCalendar java.awt.Graphics mPrint$1)
*** com.toedter.calendar.JCalendar java.lang.String mGetName()
*** com.toedter.calendar.JCalendar void mSetNextFocusableComponent(
*** com.toedter.calendar.JCalendar java.awt.Component mSetNextFocusableComponent$1)
*** com.toedter.calendar.JCalendar void mScrollRectToVisible(
*** com.toedter.calendar.JCalendar java.awt.Rectangle mScrollRectToVisible$1)
*** com.toedter.calendar.JCalendar void mSetEnabled(
*** com.toedter.calendar.JCalendar boolean mSetEnabled$1)
*** com.toedter.calendar.JCalendar java.awt.LayoutManager mGetLayout()
*** com.toedter.calendar.JCalendar boolean mIsFocusTraversable()
*** com.toedter.calendar.JCalendar void mSetRequestFocusEnabled(
*** com.toedter.calendar.JCalendar boolean mSetRequestFocusEnabled$1)
*** com.toedter.calendar.JCalendar void mDeliverEvent(
*** com.toedter.calendar.JCalendar java.awt.Event mDeliverEvent$1)
*** com.toedter.calendar.JCalendar java.awt.Component mAdd_2(
*** com.toedter.calendar.JCalendar java.awt.Component mAdd_2$1)
*** com.toedter.calendar.JCalendar void mDisable()
*** com.toedter.calendar.JCalendar com.toedter.calendar.JMonthChooser mGetMonthChooser()
*** com.toedter.calendar.JCalendar void mSetLocale(
*** com.toedter.calendar.JCalendar java.util.Locale mSetLocale$1)
*** com.toedter.calendar.JCalendar void mAddVetoableChangeListener(
*** com.toedter.calendar.JCalendar java.beans.VetoableChangeListener mAddVetoableChangeListener$1)
*** com.toedter.calendar.JCalendar boolean mIsOpaque()
*** com.toedter.calendar.JCalendar void mSetInputVerifier(
*** com.toedter.calendar.JCalendar javax.swing.InputVerifier mSetInputVerifier$1)
*** com.toedter.calendar.JCalendar java.awt.event.ActionListener mGetActionForKeyStroke(
*** com.toedter.calendar.JCalendar javax.swing.KeyStroke mGetActionForKeyStroke$1)
*** com.toedter.calendar.JCalendar boolean mIsFocusCycleRoot()
*** com.toedter.calendar.JCalendar java.awt.Component mFindComponentAt(
*** com.toedter.calendar.JCalendar int mFindComponentAt$1,
*** com.toedter.calendar.JCalendar int mFindComponentAt$2)
*** com.toedter.calendar.JCalendar void mSetActionMap(
*** com.toedter.calendar.JCalendar javax.swing.ActionMap mSetActionMap$1)
*** com.toedter.calendar.JCalendar void mRepaint_0(
*** com.toedter.calendar.JCalendar java.awt.Rectangle mRepaint_0$1)
*** com.toedter.calendar.JCalendar void mFirePropertyChange_2(
*** com.toedter.calendar.JCalendar java.lang.String mFirePropertyChange_2$1,
*** com.toedter.calendar.JCalendar char mFirePropertyChange_2$2,
*** com.toedter.calendar.JCalendar char mFirePropertyChange_2$3)
*** com.toedter.calendar.JCalendar boolean mIsAncestorOf(
*** com.toedter.calendar.JCalendar java.awt.Component mIsAncestorOf$1)
*** com.toedter.calendar.JCalendar java.awt.Dimension mMinimumSize()
*** com.toedter.calendar.JCalendar java.lang.String mGetToolTipText(
*** com.toedter.calendar.JCalendar java.awt.event.MouseEvent mGetToolTipText$1)
*** com.toedter.calendar.JCalendar void mFirePropertyChange_3(
*** com.toedter.calendar.JCalendar java.lang.String mFirePropertyChange_3$1,
*** com.toedter.calendar.JCalendar boolean mFirePropertyChange_3$2,
*** com.toedter.calendar.JCalendar boolean mFirePropertyChange_3$3)
*** com.toedter.calendar.JCalendar void mRemovePropertyChangeListener(
*** com.toedter.calendar.JCalendar java.beans.PropertyChangeListener mRemovePropertyChangeListener$1)
*** com.toedter.calendar.JCalendar boolean mIsMaximumSizeSet()
*** com.toedter.calendar.JCalendar java.awt.Component mAdd_3(
*** com.toedter.calendar.JCalendar java.awt.Component mAdd_3$1,
*** com.toedter.calendar.JCalendar int mAdd_3$2)
*** com.toedter.calendar.JCalendar javax.swing.JRootPane mGetRootPane()
*** com.toedter.calendar.JCalendar void mAddPropertyChangeListener_0(
*** com.toedter.calendar.JCalendar java.beans.PropertyChangeListener mAddPropertyChangeListener_0$1)
*** com.toedter.calendar.JCalendar java.util.Locale mGetLocale()
*** com.toedter.calendar.JCalendar boolean mGetAutoscrolls()
*** com.toedter.calendar.JCalendar java.awt.Dimension mGetMaximumSize()
*** com.toedter.calendar.JCalendar void mList_0(
*** com.toedter.calendar.JCalendar java.io.PrintStream mList_0$1,
*** com.toedter.calendar.JCalendar int mList_0$2)
*** com.toedter.calendar.JCalendar boolean mIsOptimizedDrawingEnabled()
*** com.toedter.calendar.JCalendar void mPaintImmediately(
*** com.toedter.calendar.JCalendar java.awt.Rectangle mPaintImmediately$1)
*** com.toedter.calendar.JCalendar java.lang.Object mGetClientProperty(
*** com.toedter.calendar.JCalendar java.lang.Object mGetClientProperty$1)
*** com.toedter.calendar.JCalendar int mGetConditionForKeyStroke(
*** com.toedter.calendar.JCalendar javax.swing.KeyStroke mGetConditionForKeyStroke$1)
*** com.toedter.calendar.JCalendar java.awt.Graphics mGetGraphics()
*** com.toedter.calendar.JCalendar void mSetToolTipText(
*** com.toedter.calendar.JCalendar java.lang.String mSetToolTipText$1)
*** com.toedter.calendar.JCalendar void mResetKeyboardActions()
*** com.toedter.calendar.JCalendar void mAddContainerListener(
*** com.toedter.calendar.JCalendar java.awt.event.ContainerListener mAddContainerListener$1)
*** com.toedter.calendar.JCalendar void mHide()
*** com.toedter.calendar.JCalendar int mGetComponentCount()
*** com.toedter.calendar.JCalendar void mDoLayout()
*** com.toedter.calendar.JCalendar java.awt.Component mGetComponent(
*** com.toedter.calendar.JCalendar int mGetComponent$1)
*** com.toedter.calendar.JCalendar void mSetDebugGraphicsOptions(
*** com.toedter.calendar.JCalendar int mSetDebugGraphicsOptions$1)
*** com.toedter.calendar.JCalendar java.awt.Point mGetLocation(
*** com.toedter.calendar.JCalendar java.awt.Point mGetLocation$1)
*** com.toedter.calendar.JCalendar void mUpdateUI()
*** com.toedter.calendar.JCalendar void mSetOpaque(
*** com.toedter.calendar.JCalendar boolean mSetOpaque$1)
*** com.toedter.calendar.JCalendar java.awt.Component mFindComponentAt_0(
*** com.toedter.calendar.JCalendar java.awt.Point mFindComponentAt_0$1)
*** com.toedter.calendar.JCalendar javax.swing.ActionMap mGetActionMap()
*** com.toedter.calendar.JCalendar void mSetVisible(
*** com.toedter.calendar.JCalendar boolean mSetVisible$1)
*** com.toedter.calendar.JCalendar void mPaint(
*** com.toedter.calendar.JCalendar java.awt.Graphics mPaint$1)
*** com.toedter.calendar.JCalendar void mSetInputMap(
*** com.toedter.calendar.JCalendar int mSetInputMap$1,
*** com.toedter.calendar.JCalendar javax.swing.InputMap mSetInputMap$2)
*** com.toedter.calendar.JCalendar void mFirePropertyChange_4(
*** com.toedter.calendar.JCalendar java.lang.String mFirePropertyChange_4$1,
*** com.toedter.calendar.JCalendar double mFirePropertyChange_4$2,
*** com.toedter.calendar.JCalendar double mFirePropertyChange_4$3)
*** com.toedter.calendar.JCalendar void mSetCalendar(
*** com.toedter.calendar.JCalendar java.util.Calendar mSetCalendar$1)
*** com.toedter.calendar.JCalendar void mSetAlignmentY(
*** com.toedter.calendar.JCalendar float mSetAlignmentY$1)
*** com.toedter.calendar.JCalendar void mSetAlignmentX(
*** com.toedter.calendar.JCalendar float mSetAlignmentX$1)
*** com.toedter.calendar.JCalendar java.awt.Component mGetComponentAt_0(
*** com.toedter.calendar.JCalendar int mGetComponentAt_0$1,
*** com.toedter.calendar.JCalendar int mGetComponentAt_0$2)
*** com.toedter.calendar.JCalendar boolean mHasFocus()
*** com.toedter.calendar.JCalendar java.awt.Insets mGetInsets(
*** com.toedter.calendar.JCalendar java.awt.Insets mGetInsets$1)
*** com.toedter.calendar.JCalendar void mRemove_0(
*** com.toedter.calendar.JCalendar int mRemove_0$1)
*** com.toedter.calendar.JCalendar java.awt.Insets mInsets()
*** com.toedter.calendar.JCalendar void mPaintComponents(
*** com.toedter.calendar.JCalendar java.awt.Graphics mPaintComponents$1)
*** com.toedter.calendar.JCalendar void mSetAutoscrolls(
*** com.toedter.calendar.JCalendar boolean mSetAutoscrolls$1)
*** com.toedter.calendar.JCalendar void mReshape(
*** com.toedter.calendar.JCalendar int mReshape$1,
*** com.toedter.calendar.JCalendar int mReshape$2,
*** com.toedter.calendar.JCalendar int mReshape$3,
*** com.toedter.calendar.JCalendar int mReshape$4)
*** com.toedter.calendar.JCalendar boolean mIsPreferredSizeSet()
*** com.toedter.calendar.JCalendar boolean mIsLightweightComponent(
*** com.toedter.calendar.JCalendar java.awt.Component mIsLightweightComponent$1)
*** com.toedter.calendar.JCalendar void mSetForeground(
*** com.toedter.calendar.JCalendar java.awt.Color mSetForeground$1)
*** com.toedter.calendar.JCalendar void mSetMaximumSize(
*** com.toedter.calendar.JCalendar java.awt.Dimension mSetMaximumSize$1)
*** com.toedter.calendar.JCalendar java.lang.String mGetToolTipText_0()
*** com.toedter.calendar.JCalendar void mRemoveVetoableChangeListener(
*** com.toedter.calendar.JCalendar java.beans.VetoableChangeListener mRemoveVetoableChangeListener$1)
*** com.toedter.calendar.JCalendar com.toedter.calendar.JYearChooser mGetYearChooser()
*** com.toedter.calendar.JCalendar void mPutClientProperty(
*** com.toedter.calendar.JCalendar java.lang.Object mPutClientProperty$1,
*** com.toedter.calendar.JCalendar java.lang.Object mPutClientProperty$2)
*** com.toedter.calendar.JCalendar javax.swing.InputMap mGetInputMap_0(
*** com.toedter.calendar.JCalendar int mGetInputMap_0$1)
*** com.toedter.calendar.JCalendar void mSetVerifyInputWhenFocusTarget(
*** com.toedter.calendar.JCalendar boolean mSetVerifyInputWhenFocusTarget$1)
*** com.toedter.calendar.JCalendar java.util.Calendar mGetCalendar()
*** com.toedter.calendar.JCalendar void mFirePropertyChange_5(
*** com.toedter.calendar.JCalendar java.lang.String mFirePropertyChange_5$1,
*** com.toedter.calendar.JCalendar long mFirePropertyChange_5$2,
*** com.toedter.calendar.JCalendar long mFirePropertyChange_5$3)
*** com.toedter.calendar.JCalendar java.awt.Insets mGetInsets_0()
*** com.toedter.calendar.JCalendar java.awt.Component mLocate(
*** com.toedter.calendar.JCalendar int mLocate$1,
*** com.toedter.calendar.JCalendar int mLocate$2)
*** com.toedter.calendar.JCalendar boolean mIsValidateRoot()
*** com.toedter.calendar.JCalendar void mFirePropertyChange_6(
*** com.toedter.calendar.JCalendar java.lang.String mFirePropertyChange_6$1,
*** com.toedter.calendar.JCalendar float mFirePropertyChange_6$2,
*** com.toedter.calendar.JCalendar float mFirePropertyChange_6$3)
*** com.toedter.calendar.JCalendar void mRemovePropertyChangeListener_0(
*** com.toedter.calendar.JCalendar java.lang.String mRemovePropertyChangeListener_0$1,
*** com.toedter.calendar.JCalendar java.beans.PropertyChangeListener mRemovePropertyChangeListener_0$2)
*** com.toedter.calendar.JCalendar java.awt.Rectangle mGetBounds(
*** com.toedter.calendar.JCalendar java.awt.Rectangle mGetBounds$1)
*** com.toedter.calendar.JCalendar int mGetHeight()
*** com.toedter.calendar.JCalendar void mPaintImmediately_0(
*** com.toedter.calendar.JCalendar int mPaintImmediately_0$1,
*** com.toedter.calendar.JCalendar int mPaintImmediately_0$2,
*** com.toedter.calendar.JCalendar int mPaintImmediately_0$3,
*** com.toedter.calendar.JCalendar int mPaintImmediately_0$4)
*** com.toedter.calendar.JCalendar Registering listeners
*** com.toedter.calendar.JCalendar lPropertyChangeListener
*** com.toedter.calendar.JCalendar lComponentListener
*** com.toedter.calendar.JCalendar lContainerListener
*** com.toedter.calendar.JCalendar lMouseMotionListener
*** com.toedter.calendar.JCalendar lMouseListener
*** com.toedter.calendar.JCalendar lHierarchyListener
*** com.toedter.calendar.JCalendar lAncestorListener
*** com.toedter.calendar.JCalendar lKeyListener
*** com.toedter.calendar.JCalendar lVetoableChangeListener
*** com.toedter.calendar.JCalendar lFocusListener
*** com.toedter.calendar.JCalendar lHierarchyBoundsListener
*** com.toedter.calendar.JCalendar lInputMethodListener

*** com.toedter.calendar.JCalendar Setting debugMode to ALL
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h43   #16
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Il voit pourtant bien la méthode publique
Code :
 *** com.toedter.calendar.JCalendar     com.toedter.calendar.JDayChooser mGetDayChooser()
par contre, il ne doit pas être possible de cumuler les méthodes dans un même appel.
Il ne reste plus que la méthode du wrapper.
Pour quelle raison n'utilisez-vous pas le Calendar Bean fourni par Oracle, dans les démos Oracle Forms 10gR2 ?
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 14h47   #17
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
Pour la simple raison ( qui n'est peut etre pas justifiable, je l'admet) que je le trouve pa tres joli....
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 15h30   #18
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Bon, j'ai écrit un wrapper très simple et j'affiche donc ce foutu calendrier et récupère le jour sélectionné.
L'apparition dans une JFrame me semble pas top. car la fenêtre disparait dès que l'on clique dans la forme.
De plus, il y a quantité de propriété que l'on peut mettre à jour.
J'imagine que l'idéal serait de refermer cette fenêtre sur un double-click ?
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 15h37   #19
Invité de passage
 
Inscription : décembre 2007
Messages : 44
Détails du profil
Informations forums :
Inscription : décembre 2007
Messages : 44
Points : 2
Points : 2
dans l'ideal oui.....

Cependant, de mon coté j ai essayé d'importer la classe JDayChooser dans forms pour créé un package PL/SQL.
Celui-ci est créé, cependant, il y a un soucis dans mon code car quand je l'execute, j'ai une erreur ORA-105100

Mon code :

declare
test number(2);
obj ORA_JAVA.JOBJECT;
begin
obj := ???? ( je ne sai pa quoi mettre ici ....)
FBEAN.SET_LOGGING_MODE('BEAN_AREA4',1,FBEAN.LOG_ALL);
test := JDAYCHOOSER.GETDAY(obj);
message('test = '||test);
end;
fabrizio_r7 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/12/2007, 15h54   #20
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 533
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 533
Points : 6 469
Points : 6 469
Laissez tomber. Java Importer va charger le code Java sur le serveur d'appli. Vous n'aurez donc aucune chance de "voir" le calendar sur l'écran du poste client.
Je suis en train de peaufiner mon wrapper. L'ajout d'un MouseListener devrait suffire à gérer le double-click.
L'idéal est de retourner les infos via l'évènement When-Forms-Custom-Event.
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 07h58.


 
 
 
 
Partenaires

Hébergement Web